// ******************************************************************************
// Copyright     :  Copyright (C) 2021, Hisilicon Technologies Co. Ltd.
// File name     :  mpu_c_union_define.h
// Project line  :  IT产品线
// Department    :  图灵ICT处理器开发部
// Version       :  V100
// Date          :
// Description   :  Hi1823 is a throughput of 100Gbps CNA chip. It provide large bandwith, low latency, scalability
// converged network solution, support network convergency, virtualization, protocol offload, and serves IT product and
// CT product. Others        :  Generated automatically by nManager V5.1 History       :  2021/01/25 14:24:23 Create
// file
// ******************************************************************************

#ifndef MPU_C_UNION_DEFINE_H
#define MPU_C_UNION_DEFINE_H

/* Define the union csr_ncsi_sys_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_sys_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_sys_version_u;

/* Define the union csr_ncsi_chnl_smac_l_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 src_mac_l : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_chnl_smac_l_u;

/* Define the union csr_ncsi_chnl_smac_h_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 src_mac_h : 16; /* [15:0] */
        u32 rsv_0 : 16;     /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_chnl_smac_h_u;

/* Define the union csr_ncsi_chnl_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txchnl_en : 1; /* [0] */
        u32 rsv_1 : 3;     /* [3:1] */
        u32 chnl_cos : 3;  /* [6:4] */
        u32 rsv_2 : 1;     /* [7] */
        u32 dst_port : 4;  /* [11:8] */
        u32 rsv_3 : 20;    /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_chnl_ctrl_u;

/* Define the union csr_ncsi_app_bd_empty_interval_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 app_bd_empty_interval : 10; /* [9:0] */
        u32 rsv_4 : 22;                 /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_app_bd_empty_interval_u;

/* Define the union csr_ncsi_ctrl_chksum_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_chksum_en : 1; /* [0] */
        u32 rsv_5 : 3;        /* [3:1] */
        u32 tx_chksum_en : 1; /* [4] */
        u32 rsv_6 : 27;       /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ctrl_chksum_cfg_u;

/* Define the union csr_ncsi_tx_max_frame_size_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_max_frame_size : 12; /* [11:0] */
        u32 rsv_7 : 20;             /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_max_frame_size_u;

/* Define the union csr_ncsi_tx_min_frame_size_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_min_frame_size : 7; /* [6:0] */
        u32 rsv_8 : 25;            /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_min_frame_size_u;

/* Define the union csr_ncsi_ram_sys_ecc_err_insr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram4_cerr_insr : 1;  /* [0] */
        u32 ram4_ucerr_insr : 1; /* [1] */
        u32 rsv_9 : 30;          /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram_sys_ecc_err_insr_u;

/* Define the union csr_ncsi_tcmd_afifo_level_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tcmd_afifo_afull_th : 5; /* [4:0] */
        u32 rsv_10 : 27;             /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tcmd_afifo_level_u;

/* Define the union csr_ncsi_txbd_fifo_level_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txbd_fifo_afull_th : 2; /* [1:0] */
        u32 rsv_11 : 30;            /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_txbd_fifo_level_u;

/* Define the union csr_ncsi_wr_acc_max_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_acc_max : 2; /* [1:0] */
        u32 rsv_12 : 30;        /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_wr_acc_max_u;

/* Define the union csr_ncsi_rd_acc_max_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_acc_max : 2; /* [1:0] */
        u32 rsv_13 : 30;        /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rd_acc_max_u;

/* Define the union csr_ncsi_bd_dst_mode_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bd_dst_mode : 1; /* [0] */
        u32 rsv_14 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_bd_dst_mode_u;

/* Define the union csr_ncsi_tx_bd_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pie2ncsi_tx_bd_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_bd_wrd0_u;

/* Define the union csr_ncsi_tx_bd_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pie2ncsi_tx_bd_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_bd_wrd1_u;

/* Define the union csr_ncsi_tx_bd_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pie2ncsi_tx_bd_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_bd_wrd2_u;

/* Define the union csr_ncsi_tx_bd_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pie2ncsi_tx_bd_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_bd_wrd3_u;

/* Define the union csr_ncsi_app_bd_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 app_bd_en : 1; /* [0] */
        u32 rsv_15 : 31;   /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_app_bd_en_u;

/* Define the union csr_ncsi_rls_bd_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_16 : 4;                /* [3:0] */
        u32 rls_bd_ncsi2pie_addr : 28; /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rls_bd_addr_u;

/* Define the union csr_ncsi_add_bd_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_17 : 4;                /* [3:0] */
        u32 add_bd_ncsi2pie_addr : 28; /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_add_bd_addr_u;

/* Define the union csr_ncsi_app_pt_bd_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_18 : 4;                   /* [3:0] */
        u32 app_pt_bd_ncsi2pie_addr : 28; /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_app_pt_bd_addr_u;

/* Define the union csr_ncsi_app_ctrl_bd_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_19 : 4;                     /* [3:0] */
        u32 app_ctrl_bd_ncsi2pie_addr : 28; /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_app_ctrl_bd_addr_u;

/* Define the union csr_ncsi_long_latency_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_long_latency : 1;     /* [0] */
        u32 rsv_20 : 3;                /* [3:1] */
        u32 ncsi_long_latency_sel : 3; /* [6:4] */
        u32 rsv_21 : 25;               /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_long_latency_cfg_u;

/* Define the union csr_ncsi_tx_add_pad_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 passpkt_pad_en : 1; /* [0] */
        u32 ctrlpkt_pad_en : 1; /* [1] */
        u32 rsv_22 : 30;        /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_add_pad_u;

/* Define the union csr_ncsi_ram_sys_cerr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram4_cerr : 1; /* [0] */
        u32 rsv_23 : 31;   /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram_sys_cerr_u;

/* Define the union csr_ncsi_ram4_ecc_err_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram4_err_addr : 9; /* [8:0] */
        u32 rsv_24 : 23;       /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram4_ecc_err_addr_u;

/* Define the union csr_ncsi_txbd_fifo_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txbd_fifo_cnt : 3; /* [2:0] */
        u32 rsv_25 : 29;       /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_txbd_fifo_cnt_u;

/* Define the union csr_ncsi_txbd_fifo_flow_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txbd_fifo_of : 1; /* [0] */
        u32 txbd_fifo_uf : 1; /* [1] */
        u32 rsv_26 : 30;      /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_txbd_fifo_flow_u;

/* Define the union csr_ncsi_tcmd_afifo_of_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tcmd_afifo_of : 1; /* [0] */
        u32 rsv_27 : 31;       /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tcmd_afifo_of_u;

/* Define the union csr_ncsi_tcmd_afifo_wcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tcmd_afifo_wcnt : 6; /* [5:0] */
        u32 rsv_28 : 26;         /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tcmd_afifo_wcnt_u;

/* Define the union csr_ncsi_tx_afifo_wcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_afifo_wcnt : 9; /* [8:0] */
        u32 rsv_29 : 23;       /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_afifo_wcnt_u;

/* Define the union csr_ncsi_tx_afifo_of_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_afifo_of : 1; /* [0] */
        u32 rsv_30 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_afifo_of_u;

/* Define the union csr_ncsi_pt_bd_fifo_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 app_pt_bd_fifo_cnt : 2; /* [1:0] */
        u32 rsv_31 : 30;            /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_pt_bd_fifo_cnt_u;

/* Define the union csr_ncsi_pt_bd_fifo_flow_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 app_pt_bd_fifo_of : 1; /* [0] */
        u32 app_pt_bd_fifo_uf : 1; /* [1] */
        u32 rsv_32 : 30;           /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_pt_bd_fifo_flow_u;

/* Define the union csr_ncsi_ctrl_bd_fifo_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 app_ctrl_bd_fifo_cnt : 2; /* [1:0] */
        u32 rsv_33 : 30;              /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ctrl_bd_fifo_cnt_u;

/* Define the union csr_ncsi_ctrl_bd_fifo_flow_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 app_ctrl_bd_fifo_of : 1; /* [0] */
        u32 app_ctrl_bd_fifo_uf : 1; /* [1] */
        u32 rsv_34 : 30;             /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ctrl_bd_fifo_flow_u;

/* Define the union csr_ncsi_axi_otd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_otd_cnt : 3; /* [2:0] */
        u32 rsv_35 : 1;         /* [3] */
        u32 axi_rd_otd_cnt : 3; /* [6:4] */
        u32 rsv_36 : 25;        /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_axi_otd_cnt_u;

/* Define the union csr_ncsi_app_bd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 app_bd_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_app_bd_cnt_u;

/* Define the union csr_ncsi_add_bd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_bd_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_add_bd_cnt_u;

/* Define the union csr_ncsi_rx_txbd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_txbd_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_txbd_cnt_u;

/* Define the union csr_ncsi_rx_txbd_empty_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_txbd_empty_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_txbd_empty_cnt_u;

/* Define the union csr_ncsi_rx_txbd_code_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_txbd_code_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_txbd_code_err_cnt_u;

/* Define the union csr_ncsi_rx_txbd_min_frame_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_txbd_min_frame_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_txbd_min_frame_cnt_u;

/* Define the union csr_ncsi_rx_txbd_max_frame_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_txbd_max_frame_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_txbd_max_frame_cnt_u;

/* Define the union csr_ncsi_rls_bd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_bd_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rls_bd_cnt_u;

/* Define the union csr_ncsi_rx_pt_pkt_cnt_low_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pt_pkt_cnt_low : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_pt_pkt_cnt_low_u;

/* Define the union csr_ncsi_rx_pt_pkt_cnt_high_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pt_pkt_cnt_high : 16; /* [15:0] */
        u32 rsv_37 : 16;             /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_pt_pkt_cnt_high_u;

/* Define the union csr_ncsi_rx_pt_pkt_disc_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pt_pkt_disc_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_pt_pkt_disc_cnt_u;

/* Define the union csr_ncsi_rx_pt_ch_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pt_ch_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_pt_ch_err_cnt_u;

/* Define the union csr_ncsi_tx_pt_pkt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pt_pkt_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_pt_pkt_cnt_u;

/* Define the union csr_ncsi_rx_ctrl_ok_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_ctrl_ok_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_ctrl_ok_cnt_u;

/* Define the union csr_ncsi_rx_ctrl_disc_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_ctrl_disc_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_ctrl_disc_cnt_u;

/* Define the union csr_ncsi_rx_ctrl_chksum_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_ctrl_chksum_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_ctrl_chksum_err_cnt_u;

/* Define the union csr_ncsi_tx_ctrl_pkt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_ctrl_pkt_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_ctrl_pkt_cnt_u;

/* Define the union csr_ncsi_tx_ctrl_len_mismatch_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_ctrl_len_mismatch_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_ctrl_len_mismatch_cnt_u;

/* Define the union csr_ncsi_tx_ctrl_len_short_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_ctrl_len_short_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_ctrl_len_short_u;

/* Define the union csr_ncsi_bd_busy_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ctrl_bd_dealing : 1; /* [0] */
        u32 rsv_38 : 7;          /* [7:1] */
        u32 pt_bd_dealing : 1;   /* [8] */
        u32 rsv_39 : 23;         /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_bd_busy_stat_u;

/* Define the union csr_ncsi_rx_pt_ch_ok_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pt_ch_ok_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_pt_ch_ok_cnt_u;

/* Define the union csr_ncsi_rx_ctrl_payload_len_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_ctrl_payload_len_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_ctrl_payload_len_err_cnt_u;

/* Define the union csr_ncsi_rx_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_cur_st : 8; /* [7:0] */
        u32 rsv_40 : 24;   /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_cur_st_u;

/* Define the union csr_ncsi_app_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 app_cur_st : 4; /* [3:0] */
        u32 rsv_41 : 28;    /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_app_cur_st_u;

/* Define the union csr_ncsi_wshm_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wshm_cur_st : 6; /* [5:0] */
        u32 rsv_42 : 26;     /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_wshm_cur_st_u;

/* Define the union csr_ncsi_add_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_cur_st : 2; /* [1:0] */
        u32 rsv_43 : 30;    /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_add_cur_st_u;

/* Define the union csr_ncsi_rshm_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rshm_cur_st : 7; /* [6:0] */
        u32 rsv_44 : 25;     /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rshm_cur_st_u;

/* Define the union csr_ncsi_rls_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_cur_st : 2; /* [1:0] */
        u32 rsv_45 : 30;    /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rls_cur_st_u;

/* Define the union csr_ncsi_axi_rch_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rch_cur_st : 2; /* [1:0] */
        u32 rsv_46 : 30;        /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_axi_rch_cur_st_u;

/* Define the union csr_ncsi_axi_wch_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wch_cur_st : 2; /* [1:0] */
        u32 rsv_47 : 30;        /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_axi_wch_cur_st_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_ncsi_sys_version_u ncsi_sys_version;                                 /* 0 */
    volatile csr_ncsi_chnl_smac_l_u ncsi_chnl_smac_l[4];                              /* 100 */
    volatile csr_ncsi_chnl_smac_h_u ncsi_chnl_smac_h[4];                              /* 110 */
    volatile csr_ncsi_chnl_ctrl_u ncsi_chnl_ctrl[4];                                  /* 120 */
    volatile csr_ncsi_app_bd_empty_interval_u ncsi_app_bd_empty_interval;             /* 130 */
    volatile csr_ncsi_ctrl_chksum_cfg_u ncsi_ctrl_chksum_cfg;                         /* 134 */
    volatile csr_ncsi_tx_max_frame_size_u ncsi_tx_max_frame_size;                     /* 138 */
    volatile csr_ncsi_tx_min_frame_size_u ncsi_tx_min_frame_size;                     /* 13C */
    volatile csr_ncsi_ram_sys_ecc_err_insr_u ncsi_ram_sys_ecc_err_insr;               /* 140 */
    volatile csr_ncsi_tcmd_afifo_level_u ncsi_tcmd_afifo_level;                       /* 144 */
    volatile csr_ncsi_txbd_fifo_level_u ncsi_txbd_fifo_level;                         /* 148 */
    volatile csr_ncsi_wr_acc_max_u ncsi_wr_acc_max;                                   /* 14C */
    volatile csr_ncsi_rd_acc_max_u ncsi_rd_acc_max;                                   /* 150 */
    volatile csr_ncsi_bd_dst_mode_u ncsi_bd_dst_mode;                                 /* 154 */
    volatile csr_ncsi_tx_bd_wrd0_u ncsi_tx_bd_wrd0;                                   /* 200 */
    volatile csr_ncsi_tx_bd_wrd1_u ncsi_tx_bd_wrd1;                                   /* 204 */
    volatile csr_ncsi_tx_bd_wrd2_u ncsi_tx_bd_wrd2;                                   /* 208 */
    volatile csr_ncsi_tx_bd_wrd3_u ncsi_tx_bd_wrd3;                                   /* 20C */
    volatile csr_ncsi_app_bd_en_u ncsi_app_bd_en;                                     /* 210 */
    volatile csr_ncsi_rls_bd_addr_u ncsi_rls_bd_addr;                                 /* 214 */
    volatile csr_ncsi_add_bd_addr_u ncsi_add_bd_addr;                                 /* 218 */
    volatile csr_ncsi_app_pt_bd_addr_u ncsi_app_pt_bd_addr;                           /* 21C */
    volatile csr_ncsi_app_ctrl_bd_addr_u ncsi_app_ctrl_bd_addr;                       /* 220 */
    volatile csr_ncsi_long_latency_cfg_u ncsi_long_latency_cfg;                       /* 224 */
    volatile csr_ncsi_tx_add_pad_u ncsi_tx_add_pad;                                   /* 228 */
    volatile csr_ncsi_ram_sys_cerr_u ncsi_ram_sys_cerr;                               /* 300 */
    volatile csr_ncsi_ram4_ecc_err_addr_u ncsi_ram4_ecc_err_addr;                     /* 304 */
    volatile csr_ncsi_txbd_fifo_cnt_u ncsi_txbd_fifo_cnt;                             /* 308 */
    volatile csr_ncsi_txbd_fifo_flow_u ncsi_txbd_fifo_flow;                           /* 30C */
    volatile csr_ncsi_tcmd_afifo_of_u ncsi_tcmd_afifo_of;                             /* 310 */
    volatile csr_ncsi_tcmd_afifo_wcnt_u ncsi_tcmd_afifo_wcnt;                         /* 314 */
    volatile csr_ncsi_tx_afifo_wcnt_u ncsi_tx_afifo_wcnt;                             /* 318 */
    volatile csr_ncsi_tx_afifo_of_u ncsi_tx_afifo_of;                                 /* 31C */
    volatile csr_ncsi_pt_bd_fifo_cnt_u ncsi_pt_bd_fifo_cnt;                           /* 320 */
    volatile csr_ncsi_pt_bd_fifo_flow_u ncsi_pt_bd_fifo_flow;                         /* 324 */
    volatile csr_ncsi_ctrl_bd_fifo_cnt_u ncsi_ctrl_bd_fifo_cnt;                       /* 328 */
    volatile csr_ncsi_ctrl_bd_fifo_flow_u ncsi_ctrl_bd_fifo_flow;                     /* 32C */
    volatile csr_ncsi_axi_otd_cnt_u ncsi_axi_otd_cnt;                                 /* 330 */
    volatile csr_ncsi_app_bd_cnt_u ncsi_app_bd_cnt;                                   /* 400 */
    volatile csr_ncsi_add_bd_cnt_u ncsi_add_bd_cnt;                                   /* 404 */
    volatile csr_ncsi_rx_txbd_cnt_u ncsi_rx_txbd_cnt;                                 /* 408 */
    volatile csr_ncsi_rx_txbd_empty_cnt_u ncsi_rx_txbd_empty_cnt;                     /* 40C */
    volatile csr_ncsi_rx_txbd_code_err_cnt_u ncsi_rx_txbd_code_err_cnt;               /* 410 */
    volatile csr_ncsi_rx_txbd_min_frame_cnt_u ncsi_rx_txbd_min_frame_cnt;             /* 414 */
    volatile csr_ncsi_rx_txbd_max_frame_cnt_u ncsi_rx_txbd_max_frame_cnt;             /* 418 */
    volatile csr_ncsi_rls_bd_cnt_u ncsi_rls_bd_cnt;                                   /* 41C */
    volatile csr_ncsi_rx_pt_pkt_cnt_low_u ncsi_rx_pt_pkt_cnt_low;                     /* 420 */
    volatile csr_ncsi_rx_pt_pkt_cnt_high_u ncsi_rx_pt_pkt_cnt_high;                   /* 424 */
    volatile csr_ncsi_rx_pt_pkt_disc_cnt_u ncsi_rx_pt_pkt_disc_cnt;                   /* 428 */
    volatile csr_ncsi_rx_pt_ch_err_cnt_u ncsi_rx_pt_ch_err_cnt[4];                    /* 42C */
    volatile csr_ncsi_tx_pt_pkt_cnt_u ncsi_tx_pt_pkt_cnt;                             /* 43C */
    volatile csr_ncsi_rx_ctrl_ok_cnt_u ncsi_rx_ctrl_ok_cnt;                           /* 440 */
    volatile csr_ncsi_rx_ctrl_disc_cnt_u ncsi_rx_ctrl_disc_cnt;                       /* 444 */
    volatile csr_ncsi_rx_ctrl_chksum_err_cnt_u ncsi_rx_ctrl_chksum_err_cnt;           /* 448 */
    volatile csr_ncsi_tx_ctrl_pkt_cnt_u ncsi_tx_ctrl_pkt_cnt;                         /* 44C */
    volatile csr_ncsi_tx_ctrl_len_mismatch_cnt_u ncsi_tx_ctrl_len_mismatch_cnt;       /* 450 */
    volatile csr_ncsi_tx_ctrl_len_short_u ncsi_tx_ctrl_len_short;                     /* 454 */
    volatile csr_ncsi_bd_busy_stat_u ncsi_bd_busy_stat;                               /* 458 */
    volatile csr_ncsi_rx_pt_ch_ok_cnt_u ncsi_rx_pt_ch_ok_cnt[4];                      /* 45C */
    volatile csr_ncsi_rx_ctrl_payload_len_err_cnt_u ncsi_rx_ctrl_payload_len_err_cnt; /* 46C */
    volatile csr_ncsi_rx_cur_st_u ncsi_rx_cur_st;                                     /* 500 */
    volatile csr_ncsi_app_cur_st_u ncsi_app_cur_st;                                   /* 504 */
    volatile csr_ncsi_wshm_cur_st_u ncsi_wshm_cur_st;                                 /* 508 */
    volatile csr_ncsi_add_cur_st_u ncsi_add_cur_st;                                   /* 50C */
    volatile csr_ncsi_rshm_cur_st_u ncsi_rshm_cur_st;                                 /* 510 */
    volatile csr_ncsi_rls_cur_st_u ncsi_rls_cur_st;                                   /* 514 */
    volatile csr_ncsi_axi_rch_cur_st_u ncsi_axi_rch_cur_st;                           /* 518 */
    volatile csr_ncsi_axi_wch_cur_st_u ncsi_axi_wch_cur_st;                           /* 51C */
} S_ncsi_sys_csr_REGS_TYPE;

/* Declare the struct pointor of the module ncsi_sys_csr */
extern volatile S_ncsi_sys_csr_REGS_TYPE *gopncsi_sys_csrAllReg;

/* Declare the functions that set the member value */
int iSetNCSI_SYS_VERSION_ncsi_sys_version(unsigned int uncsi_sys_version);
int iSetNCSI_CHNL_SMAC_L_src_mac_l(unsigned int usrc_mac_l);
int iSetNCSI_CHNL_SMAC_H_src_mac_h(unsigned int usrc_mac_h);
int iSetNCSI_CHNL_CTRL_txchnl_en(unsigned int utxchnl_en);
int iSetNCSI_CHNL_CTRL_chnl_cos(unsigned int uchnl_cos);
int iSetNCSI_CHNL_CTRL_dst_port(unsigned int udst_port);
int iSetNCSI_APP_BD_EMPTY_INTERVAL_app_bd_empty_interval(unsigned int uapp_bd_empty_interval);
int iSetNCSI_CTRL_CHKSUM_CFG_rx_chksum_en(unsigned int urx_chksum_en);
int iSetNCSI_CTRL_CHKSUM_CFG_tx_chksum_en(unsigned int utx_chksum_en);
int iSetNCSI_TX_MAX_FRAME_SIZE_tx_max_frame_size(unsigned int utx_max_frame_size);
int iSetNCSI_TX_MIN_FRAME_SIZE_tx_min_frame_size(unsigned int utx_min_frame_size);
int iSetNCSI_RAM_SYS_ECC_ERR_INSR_ram4_cerr_insr(unsigned int uram4_cerr_insr);
int iSetNCSI_RAM_SYS_ECC_ERR_INSR_ram4_ucerr_insr(unsigned int uram4_ucerr_insr);
int iSetNCSI_TCMD_AFIFO_LEVEL_tcmd_afifo_afull_th(unsigned int utcmd_afifo_afull_th);
int iSetNCSI_TXBD_FIFO_LEVEL_txbd_fifo_afull_th(unsigned int utxbd_fifo_afull_th);
int iSetNCSI_WR_ACC_MAX_axi_wr_acc_max(unsigned int uaxi_wr_acc_max);
int iSetNCSI_RD_ACC_MAX_axi_rd_acc_max(unsigned int uaxi_rd_acc_max);
int iSetNCSI_BD_DST_MODE_bd_dst_mode(unsigned int ubd_dst_mode);
int iSetNCSI_TX_BD_WRD0_pie2ncsi_tx_bd_wrd0(unsigned int upie2ncsi_tx_bd_wrd0);
int iSetNCSI_TX_BD_WRD1_pie2ncsi_tx_bd_wrd1(unsigned int upie2ncsi_tx_bd_wrd1);
int iSetNCSI_TX_BD_WRD2_pie2ncsi_tx_bd_wrd2(unsigned int upie2ncsi_tx_bd_wrd2);
int iSetNCSI_TX_BD_WRD3_pie2ncsi_tx_bd_wrd3(unsigned int upie2ncsi_tx_bd_wrd3);
int iSetNCSI_APP_BD_EN_app_bd_en(unsigned int uapp_bd_en);
int iSetNCSI_RLS_BD_ADDR_rls_bd_ncsi2pie_addr(unsigned int urls_bd_ncsi2pie_addr);
int iSetNCSI_ADD_BD_ADDR_add_bd_ncsi2pie_addr(unsigned int uadd_bd_ncsi2pie_addr);
int iSetNCSI_APP_PT_BD_ADDR_app_pt_bd_ncsi2pie_addr(unsigned int uapp_pt_bd_ncsi2pie_addr);
int iSetNCSI_APP_CTRL_BD_ADDR_app_ctrl_bd_ncsi2pie_addr(unsigned int uapp_ctrl_bd_ncsi2pie_addr);
int iSetNCSI_LONG_LATENCY_CFG_ncsi_long_latency(unsigned int uncsi_long_latency);
int iSetNCSI_LONG_LATENCY_CFG_ncsi_long_latency_sel(unsigned int uncsi_long_latency_sel);
int iSetNCSI_TX_ADD_PAD_passpkt_pad_en(unsigned int upasspkt_pad_en);
int iSetNCSI_TX_ADD_PAD_ctrlpkt_pad_en(unsigned int uctrlpkt_pad_en);
int iSetNCSI_RAM_SYS_CERR_ram4_cerr(unsigned int uram4_cerr);
int iSetNCSI_RAM4_ECC_ERR_ADDR_ram4_err_addr(unsigned int uram4_err_addr);
int iSetNCSI_TXBD_FIFO_CNT_txbd_fifo_cnt(unsigned int utxbd_fifo_cnt);
int iSetNCSI_TXBD_FIFO_FLOW_txbd_fifo_of(unsigned int utxbd_fifo_of);
int iSetNCSI_TXBD_FIFO_FLOW_txbd_fifo_uf(unsigned int utxbd_fifo_uf);
int iSetNCSI_TCMD_AFIFO_OF_tcmd_afifo_of(unsigned int utcmd_afifo_of);
int iSetNCSI_TCMD_AFIFO_WCNT_tcmd_afifo_wcnt(unsigned int utcmd_afifo_wcnt);
int iSetNCSI_TX_AFIFO_WCNT_tx_afifo_wcnt(unsigned int utx_afifo_wcnt);
int iSetNCSI_TX_AFIFO_OF_tx_afifo_of(unsigned int utx_afifo_of);
int iSetNCSI_PT_BD_FIFO_CNT_app_pt_bd_fifo_cnt(unsigned int uapp_pt_bd_fifo_cnt);
int iSetNCSI_PT_BD_FIFO_FLOW_app_pt_bd_fifo_of(unsigned int uapp_pt_bd_fifo_of);
int iSetNCSI_PT_BD_FIFO_FLOW_app_pt_bd_fifo_uf(unsigned int uapp_pt_bd_fifo_uf);
int iSetNCSI_CTRL_BD_FIFO_CNT_app_ctrl_bd_fifo_cnt(unsigned int uapp_ctrl_bd_fifo_cnt);
int iSetNCSI_CTRL_BD_FIFO_FLOW_app_ctrl_bd_fifo_of(unsigned int uapp_ctrl_bd_fifo_of);
int iSetNCSI_CTRL_BD_FIFO_FLOW_app_ctrl_bd_fifo_uf(unsigned int uapp_ctrl_bd_fifo_uf);
int iSetNCSI_AXI_OTD_CNT_axi_wr_otd_cnt(unsigned int uaxi_wr_otd_cnt);
int iSetNCSI_AXI_OTD_CNT_axi_rd_otd_cnt(unsigned int uaxi_rd_otd_cnt);
int iSetNCSI_APP_BD_CNT_app_bd_cnt(unsigned int uapp_bd_cnt);
int iSetNCSI_ADD_BD_CNT_add_bd_cnt(unsigned int uadd_bd_cnt);
int iSetNCSI_RX_TXBD_CNT_rx_txbd_cnt(unsigned int urx_txbd_cnt);
int iSetNCSI_RX_TXBD_EMPTY_CNT_rx_txbd_empty_cnt(unsigned int urx_txbd_empty_cnt);
int iSetNCSI_RX_TXBD_CODE_ERR_CNT_rx_txbd_code_err_cnt(unsigned int urx_txbd_code_err_cnt);
int iSetNCSI_RX_TXBD_MIN_FRAME_CNT_rx_txbd_min_frame_cnt(unsigned int urx_txbd_min_frame_cnt);
int iSetNCSI_RX_TXBD_MAX_FRAME_CNT_rx_txbd_max_frame_cnt(unsigned int urx_txbd_max_frame_cnt);
int iSetNCSI_RLS_BD_CNT_rls_bd_cnt(unsigned int urls_bd_cnt);
int iSetNCSI_RX_PT_PKT_CNT_LOW_rx_pt_pkt_cnt_low(unsigned int urx_pt_pkt_cnt_low);
int iSetNCSI_RX_PT_PKT_CNT_HIGH_rx_pt_pkt_cnt_high(unsigned int urx_pt_pkt_cnt_high);
int iSetNCSI_RX_PT_PKT_DISC_CNT_rx_pt_pkt_disc_cnt(unsigned int urx_pt_pkt_disc_cnt);
int iSetNCSI_RX_PT_CH_ERR_CNT_rx_pt_ch_err_cnt(unsigned int urx_pt_ch_err_cnt);
int iSetNCSI_TX_PT_PKT_CNT_tx_pt_pkt_cnt(unsigned int utx_pt_pkt_cnt);
int iSetNCSI_RX_CTRL_OK_CNT_rx_ctrl_ok_cnt(unsigned int urx_ctrl_ok_cnt);
int iSetNCSI_RX_CTRL_DISC_CNT_rx_ctrl_disc_cnt(unsigned int urx_ctrl_disc_cnt);
int iSetNCSI_RX_CTRL_CHKSUM_ERR_CNT_rx_ctrl_chksum_err_cnt(unsigned int urx_ctrl_chksum_err_cnt);
int iSetNCSI_TX_CTRL_PKT_CNT_tx_ctrl_pkt_cnt(unsigned int utx_ctrl_pkt_cnt);
int iSetNCSI_TX_CTRL_LEN_MISMATCH_CNT_tx_ctrl_len_mismatch_cnt(unsigned int utx_ctrl_len_mismatch_cnt);
int iSetNCSI_TX_CTRL_LEN_SHORT_tx_ctrl_len_short_cnt(unsigned int utx_ctrl_len_short_cnt);
int iSetNCSI_BD_BUSY_STAT_ctrl_bd_dealing(unsigned int uctrl_bd_dealing);
int iSetNCSI_BD_BUSY_STAT_pt_bd_dealing(unsigned int upt_bd_dealing);
int iSetNCSI_RX_PT_CH_OK_CNT_rx_pt_ch_ok_cnt(unsigned int urx_pt_ch_ok_cnt);
int iSetNCSI_RX_CTRL_PAYLOAD_LEN_ERR_CNT_rx_ctrl_payload_len_err_cnt(unsigned int urx_ctrl_payload_len_err_cnt);
int iSetNCSI_RX_CUR_ST_rx_cur_st(unsigned int urx_cur_st);
int iSetNCSI_APP_CUR_ST_app_cur_st(unsigned int uapp_cur_st);
int iSetNCSI_WSHM_CUR_ST_wshm_cur_st(unsigned int uwshm_cur_st);
int iSetNCSI_ADD_CUR_ST_add_cur_st(unsigned int uadd_cur_st);
int iSetNCSI_RSHM_CUR_ST_rshm_cur_st(unsigned int urshm_cur_st);
int iSetNCSI_RLS_CUR_ST_rls_cur_st(unsigned int urls_cur_st);
int iSetNCSI_AXI_RCH_CUR_ST_axi_rch_cur_st(unsigned int uaxi_rch_cur_st);
int iSetNCSI_AXI_WCH_CUR_ST_axi_wch_cur_st(unsigned int uaxi_wch_cur_st);

/* Define the union csr_ncsi_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_version_u;

/* Define the union csr_ncsi_hw_arb_bps_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hw_arb_bps : 1; /* [0] */
        u32 rsv_0 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_hw_arb_bps_u;

/* Define the union csr_ncsi_pause_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pause_en : 1; /* [0] */
        u32 rsv_1 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_pause_en_u;

/* Define the union csr_ncsi_hw_arb_ipg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hw_arb_ipg : 4; /* [3:0] */
        u32 rsv_2 : 28;     /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_hw_arb_ipg_u;

/* Define the union csr_ncsi_send_token_time_gap_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 send_token_time_gap : 6; /* [5:0] */
        u32 rsv_3 : 26;              /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_send_token_time_gap_u;

/* Define the union csr_ncsi_tr_pkt_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tr_pkt_timeout : 8; /* [7:0] */
        u32 rsv_4 : 24;         /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tr_pkt_timeout_u;

/* Define the union csr_ncsi_xoff_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_xoff_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_xoff_timeout_u;

/* Define the union csr_ncsi_pkg_id_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 local_pkg_id : 3; /* [2:0] */
        u32 rsv_5 : 29;       /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_pkg_id_u;

/* Define the union csr_ncsi_arb_mstr_event_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 arb_mstr_event : 1; /* [0] */
        u32 rsv_6 : 31;         /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_arb_mstr_event_u;

/* Define the union csr_ncsi_arb_pkg_id_msb_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 arb_pkg_id_msb : 1; /* [0] */
        u32 rsv_7 : 31;         /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_arb_pkg_id_msb_u;

/* Define the union csr_ncsi_rcvd_lower_flush_mode_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rcvd_lower_flush_mode : 1; /* [0] */
        u32 rsv_8 : 31;                /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rcvd_lower_flush_mode_u;

/* Define the union csr_ncsi_wait_idle_rcvd_pause_mode_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wait_idle_rcvd_pause_mode : 1; /* [0] */
        u32 rsv_9 : 31;                    /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_wait_idle_rcvd_pause_mode_u;

/* Define the union csr_ncsi_pad_ext_pulldown_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_pad_ext_pulldown : 1; /* [0] */
        u32 rsv_10 : 31;               /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_pad_ext_pulldown_u;

/* Define the union csr_ncsi_code_sync_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 code_sync_cur_st : 6; /* [5:0] */
        u32 rsv_11 : 26;          /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_code_sync_u;

/* Define the union csr_ncsi_rx_code_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_code_cur_st : 15; /* [14:0] */
        u32 rsv_12 : 17;         /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_code_u;

/* Define the union csr_ncsi_arb_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 arb_cur_st : 5; /* [4:0] */
        u32 rsv_13 : 27;    /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_arb_u;

/* Define the union csr_ncsi_token_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 token_cur_st : 7; /* [6:0] */
        u32 rsv_14 : 25;      /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_token_u;

/* Define the union csr_ncsi_pause_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pause_cur_st : 10; /* [9:0] */
        u32 rsv_15 : 22;       /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_pause_u;

/* Define the union csr_ncsi_tx_op_code_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_op_code : 3; /* [2:0] */
        u32 rsv_16 : 29;    /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_op_code_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_ncsi_version_u ncsi_version;                                     /* 0 */
    volatile csr_ncsi_hw_arb_bps_u ncsi_hw_arb_bps;                               /* 100 */
    volatile csr_ncsi_pause_en_u ncsi_pause_en;                                   /* 104 */
    volatile csr_ncsi_hw_arb_ipg_u ncsi_hw_arb_ipg;                               /* 108 */
    volatile csr_ncsi_send_token_time_gap_u ncsi_send_token_time_gap;             /* 10C */
    volatile csr_ncsi_tr_pkt_timeout_u ncsi_tr_pkt_timeout;                       /* 110 */
    volatile csr_ncsi_xoff_timeout_u ncsi_xoff_timeout;                           /* 114 */
    volatile csr_ncsi_pkg_id_u ncsi_pkg_id;                                       /* 118 */
    volatile csr_ncsi_arb_mstr_event_u ncsi_arb_mstr_event;                       /* 11C */
    volatile csr_ncsi_arb_pkg_id_msb_u ncsi_arb_pkg_id_msb;                       /* 120 */
    volatile csr_ncsi_rcvd_lower_flush_mode_u ncsi_rcvd_lower_flush_mode;         /* 124 */
    volatile csr_ncsi_wait_idle_rcvd_pause_mode_u ncsi_wait_idle_rcvd_pause_mode; /* 128 */
    volatile csr_ncsi_pad_ext_pulldown_u ncsi_pad_ext_pulldown;                   /* 12C */
    volatile csr_ncsi_code_sync_u ncsi_code_sync;                                 /* 500 */
    volatile csr_ncsi_rx_code_u ncsi_rx_code;                                     /* 504 */
    volatile csr_ncsi_arb_u ncsi_arb;                                             /* 508 */
    volatile csr_ncsi_token_u ncsi_token;                                         /* 50C */
    volatile csr_ncsi_pause_u ncsi_pause;                                         /* 510 */
    volatile csr_ncsi_tx_op_code_u ncsi_tx_op_code;                               /* 514 */
} S_ncsi_csr_REGS_TYPE;

/* Declare the struct pointor of the module ncsi_csr */
extern volatile S_ncsi_csr_REGS_TYPE *gopncsi_csrAllReg;

/* Declare the functions that set the member value */
int iSetNCSI_VERSION_ncsi_version(unsigned int uncsi_version);
int iSetNCSI_HW_ARB_BPS_hw_arb_bps(unsigned int uhw_arb_bps);
int iSetNCSI_PAUSE_EN_tx_pause_en(unsigned int utx_pause_en);
int iSetNCSI_HW_ARB_IPG_hw_arb_ipg(unsigned int uhw_arb_ipg);
int iSetNCSI_SEND_TOKEN_TIME_GAP_send_token_time_gap(unsigned int usend_token_time_gap);
int iSetNCSI_TR_PKT_TIMEOUT_tr_pkt_timeout(unsigned int utr_pkt_timeout);
int iSetNCSI_XOFF_TIMEOUT_tx_xoff_timeout(unsigned int utx_xoff_timeout);
int iSetNCSI_PKG_ID_local_pkg_id(unsigned int ulocal_pkg_id);
int iSetNCSI_ARB_MSTR_EVENT_arb_mstr_event(unsigned int uarb_mstr_event);
int iSetNCSI_ARB_PKG_ID_MSB_arb_pkg_id_msb(unsigned int uarb_pkg_id_msb);
int iSetNCSI_RCVD_LOWER_FLUSH_MODE_rcvd_lower_flush_mode(unsigned int urcvd_lower_flush_mode);
int iSetNCSI_WAIT_IDLE_RCVD_PAUSE_MODE_wait_idle_rcvd_pause_mode(unsigned int uwait_idle_rcvd_pause_mode);
int iSetNCSI_PAD_EXT_PULLDOWN_ncsi_pad_ext_pulldown(unsigned int uncsi_pad_ext_pulldown);
int iSetNCSI_CODE_SYNC_code_sync_cur_st(unsigned int ucode_sync_cur_st);
int iSetNCSI_RX_CODE_rx_code_cur_st(unsigned int urx_code_cur_st);
int iSetNCSI_ARB_arb_cur_st(unsigned int uarb_cur_st);
int iSetNCSI_TOKEN_token_cur_st(unsigned int utoken_cur_st);
int iSetNCSI_PAUSE_pause_cur_st(unsigned int upause_cur_st);
int iSetNCSI_TX_OP_CODE_tx_op_code(unsigned int utx_op_code);

/* Define the union csr_ncsi_mac_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_mac_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_mac_version_u;

/* Define the union csr_ncsi_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mac_fifo_err_int_status : 1;           /* [0] */
        u32 ram0_ucerr_int_status : 1;             /* [1] */
        u32 ram1_ucerr_int_status : 1;             /* [2] */
        u32 ram2_ucerr_int_status : 1;             /* [3] */
        u32 ram3_ucerr_int_status : 1;             /* [4] */
        u32 ram4_ucerr_int_status : 1;             /* [5] */
        u32 ncsi_domain_non_stable_int_status : 1; /* [6] */
        u32 rsv_0 : 25;                            /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_int_status_u;

/* Define the union csr_ncsi_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mac_fifo_err_int_en : 1;           /* [0] */
        u32 ram0_ucerr_int_en : 1;             /* [1] */
        u32 ram1_ucerr_int_en : 1;             /* [2] */
        u32 ram2_ucerr_int_en : 1;             /* [3] */
        u32 ram3_ucerr_int_en : 1;             /* [4] */
        u32 ram4_ucerr_int_en : 1;             /* [5] */
        u32 ncsi_domain_non_stable_int_en : 1; /* [6] */
        u32 rsv_1 : 25;                        /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_int_en_u;

/* Define the union csr_ncsi_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mac_fifo_err_int_set : 1;           /* [0] */
        u32 ram0_ucerr_int_set : 1;             /* [1] */
        u32 ram1_ucerr_int_set : 1;             /* [2] */
        u32 ram2_ucerr_int_set : 1;             /* [3] */
        u32 ram3_ucerr_int_set : 1;             /* [4] */
        u32 ram4_ucerr_int_set : 1;             /* [5] */
        u32 ncsi_domain_non_stable_int_set : 1; /* [6] */
        u32 rsv_2 : 25;                         /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_int_set_u;

/* Define the union csr_ncsi_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mac_fifo_err_int_raw_status : 1;           /* [0] */
        u32 ram0_ucerr_int_raw_status : 1;             /* [1] */
        u32 ram1_ucerr_int_raw_status : 1;             /* [2] */
        u32 ram2_ucerr_int_raw_status : 1;             /* [3] */
        u32 ram3_ucerr_int_raw_status : 1;             /* [4] */
        u32 ram4_ucerr_int_raw_status : 1;             /* [5] */
        u32 ncsi_domain_non_stable_int_raw_status : 1; /* [6] */
        u32 rsv_3 : 25;                                /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_int_raw_status_u;

/* Define the union csr_ncsi_tp_ram_tmod_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tp_ram_tmod : 8; /* [7:0] */
        u32 rsv_4 : 24;      /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tp_ram_tmod_u;

/* Define the union csr_ncsi_mem_power_mode_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mem_power_mode : 6; /* [5:0] */
        u32 rsv_5 : 26;         /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_mem_power_mode_u;

/* Define the union csr_ncsi_ram_ecc_bypass_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ecc_bypass : 1; /* [0] */
        u32 rsv_6 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram_ecc_bypass_u;

/* Define the union csr_ncsi_hw_arb_bps_mac_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hw_arb_bps_mac : 1; /* [0] */
        u32 rsv_7 : 31;         /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_hw_arb_bps_mac_u;

/* Define the union csr_ncsi_xon_xoff_len_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 xon_frame_len : 6;  /* [5:0] */
        u32 rsv_8 : 2;          /* [7:6] */
        u32 xoff_frame_len : 6; /* [13:8] */
        u32 rsv_9 : 18;         /* [31:14] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_xon_xoff_len_u;

/* Define the union csr_ncsi_xon_frame_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 xon_frame : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_xon_frame_u;

/* Define the union csr_ncsi_xoff_frame_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 xoff_frame : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_xoff_frame_u;

/* Define the union csr_ncsi_ram_ecc_err_insr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram0_cerr_insr : 1;  /* [0] */
        u32 ram1_cerr_insr : 1;  /* [1] */
        u32 ram2_cerr_insr : 1;  /* [2] */
        u32 ram3_cerr_insr : 1;  /* [3] */
        u32 ram0_ucerr_insr : 1; /* [4] */
        u32 ram1_ucerr_insr : 1; /* [5] */
        u32 ram2_ucerr_insr : 1; /* [6] */
        u32 ram3_ucerr_insr : 1; /* [7] */
        u32 rsv_10 : 24;         /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram_ecc_err_insr_u;

/* Define the union csr_ncsi_rx_afifo_level_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_afifo_low_level : 9;  /* [8:0] */
        u32 rsv_11 : 7;              /* [15:9] */
        u32 rx_afifo_high_level : 9; /* [24:16] */
        u32 rsv_12 : 7;              /* [31:25] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_afifo_level_u;

/* Define the union csr_ncsi_rx_afifo_afull_th_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_afifo_afull_th : 9; /* [8:0] */
        u32 rsv_13 : 23;           /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_afifo_afull_th_u;

/* Define the union csr_ncsi_rcmd_afifo_level_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rcmd_afifo_afull_th : 6; /* [5:0] */
        u32 rsv_14 : 26;             /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rcmd_afifo_level_u;

/* Define the union csr_ncsi_tx_afifo_level_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_afifo_afull_th : 8; /* [7:0] */
        u32 rsv_15 : 24;           /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_afifo_level_u;

/* Define the union csr_ncsi_domain_chk_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_domain_chk_cnt : 6;    /* [5:0] */
        u32 rsv_16 : 2;                 /* [7:6] */
        u32 ncsi_domain_jitter_max : 4; /* [11:8] */
        u32 rsv_17 : 20;                /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_domain_chk_cnt_u;

/* Define the union csr_ncsi_domain_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_domain_rdy : 1;   /* [0] */
        u32 rsv_18 : 3;            /* [3:1] */
        u32 ncsi_domain_rw_en : 1; /* [4] */
        u32 rsv_19 : 27;           /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_domain_stat_u;

/* Define the union csr_ncsi_domain_self_shield_mode_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_domain_self_shield_mode : 1; /* [0] */
        u32 rsv_20 : 31;                      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_domain_self_shield_mode_u;

/* Define the union csr_ncsi_ram_cerr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram0_cerr : 1; /* [0] */
        u32 rsv_21 : 3;    /* [3:1] */
        u32 ram1_cerr : 1; /* [4] */
        u32 rsv_22 : 3;    /* [7:5] */
        u32 ram2_cerr : 1; /* [8] */
        u32 rsv_23 : 3;    /* [11:9] */
        u32 ram3_cerr : 1; /* [12] */
        u32 rsv_24 : 19;   /* [31:13] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram_cerr_u;

/* Define the union csr_ncsi_ram0_ecc_err_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram0_err_addr : 7; /* [6:0] */
        u32 rsv_25 : 25;       /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram0_ecc_err_addr_u;

/* Define the union csr_ncsi_ram1_ecc_err_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram1_err_addr : 5; /* [4:0] */
        u32 rsv_26 : 27;       /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram1_ecc_err_addr_u;

/* Define the union csr_ncsi_ram2_ecc_err_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram2_err_addr : 5; /* [4:0] */
        u32 rsv_27 : 27;       /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram2_ecc_err_addr_u;

/* Define the union csr_ncsi_ram3_ecc_err_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram3_err_addr : 8; /* [7:0] */
        u32 rsv_28 : 24;       /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_ram3_ecc_err_addr_u;

/* Define the union csr_ncsi_rx_afifo_of_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_afifo_of : 1; /* [0] */
        u32 rsv_29 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_afifo_of_u;

/* Define the union csr_ncsi_rx_afifo_rcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_afifo_wcnt : 10; /* [9:0] */
        u32 rsv_30 : 22;        /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rx_afifo_rcnt_u;

/* Define the union csr_ncsi_rcmd_afifo_of_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rcmd_afifo_of : 1; /* [0] */
        u32 rsv_31 : 31;       /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rcmd_afifo_of_u;

/* Define the union csr_ncsi_rcmd_afifo_rcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rcmd_afifo_wcnt : 7; /* [6:0] */
        u32 rsv_32 : 25;         /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_rcmd_afifo_rcnt_u;

/* Define the union csr_ncsi_domain_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_domain_non_stable : 1; /* [0] */
        u32 rsv_33 : 31;                /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_domain_err_u;

/* Define the union csr_ncsi_tx_frm_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_frm_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_frm_cnt_u;

/* Define the union csr_ncsi_tx_frm_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_frm_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_frm_err_cnt_u;

/* Define the union csr_ncsi_tx_xon_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_xon_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_xon_cnt_u;

/* Define the union csr_ncsi_tx_xoff_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_xoff_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_xoff_cnt_u;

/* Define the union csr_ncsi_tx_xon_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_xon_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_xon_err_cnt_u;

/* Define the union csr_ncsi_tx_empty_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_empty_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_empty_err_cnt_u;

/* Define the union csr_ncsi_tx_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_cur_st : 7; /* [6:0] */
        u32 rsv_34 : 25;   /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_tx_cur_st_u;

/* Define the union csr_ncsi_pause_frm_cur_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pause_frm_cur_st : 3; /* [2:0] */
        u32 rsv_35 : 29;          /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_pause_frm_cur_st_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_ncsi_mac_version_u ncsi_mac_version;                         /* 0 */
    volatile csr_ncsi_int_status_u ncsi_int_status;                           /* 10 */
    volatile csr_ncsi_int_en_u ncsi_int_en;                                   /* 14 */
    volatile csr_ncsi_int_set_u ncsi_int_set;                                 /* 18 */
    volatile csr_ncsi_int_raw_status_u ncsi_int_raw_status;                   /* 1C */
    volatile csr_ncsi_tp_ram_tmod_u ncsi_tp_ram_tmod;                         /* 100 */
    volatile csr_ncsi_mem_power_mode_u ncsi_mem_power_mode;                   /* 104 */
    volatile csr_ncsi_ram_ecc_bypass_u ncsi_ram_ecc_bypass;                   /* 108 */
    volatile csr_ncsi_hw_arb_bps_mac_u ncsi_hw_arb_bps_mac;                   /* 10C */
    volatile csr_ncsi_xon_xoff_len_u ncsi_xon_xoff_len;                       /* 110 */
    volatile csr_ncsi_xon_frame_u ncsi_xon_frame[16];                         /* 114 */
    volatile csr_ncsi_xoff_frame_u ncsi_xoff_frame[16];                       /* 154 */
    volatile csr_ncsi_ram_ecc_err_insr_u ncsi_ram_ecc_err_insr;               /* 194 */
    volatile csr_ncsi_rx_afifo_level_u ncsi_rx_afifo_level;                   /* 198 */
    volatile csr_ncsi_rx_afifo_afull_th_u ncsi_rx_afifo_afull_th;             /* 19C */
    volatile csr_ncsi_rcmd_afifo_level_u ncsi_rcmd_afifo_level;               /* 1A0 */
    volatile csr_ncsi_tx_afifo_level_u ncsi_tx_afifo_level;                   /* 1A4 */
    volatile csr_ncsi_domain_chk_cnt_u ncsi_domain_chk_cnt;                   /* 1A8 */
    volatile csr_ncsi_domain_stat_u ncsi_domain_stat;                         /* 1AC */
    volatile csr_ncsi_domain_self_shield_mode_u ncsi_domain_self_shield_mode; /* 1B0 */
    volatile csr_ncsi_ram_cerr_u ncsi_ram_cerr;                               /* 300 */
    volatile csr_ncsi_ram0_ecc_err_addr_u ncsi_ram0_ecc_err_addr;             /* 304 */
    volatile csr_ncsi_ram1_ecc_err_addr_u ncsi_ram1_ecc_err_addr;             /* 308 */
    volatile csr_ncsi_ram2_ecc_err_addr_u ncsi_ram2_ecc_err_addr;             /* 30C */
    volatile csr_ncsi_ram3_ecc_err_addr_u ncsi_ram3_ecc_err_addr;             /* 310 */
    volatile csr_ncsi_rx_afifo_of_u ncsi_rx_afifo_of;                         /* 314 */
    volatile csr_ncsi_rx_afifo_rcnt_u ncsi_rx_afifo_rcnt;                     /* 318 */
    volatile csr_ncsi_rcmd_afifo_of_u ncsi_rcmd_afifo_of;                     /* 31C */
    volatile csr_ncsi_rcmd_afifo_rcnt_u ncsi_rcmd_afifo_rcnt;                 /* 320 */
    volatile csr_ncsi_domain_err_u ncsi_domain_err;                           /* 324 */
    volatile csr_ncsi_tx_frm_cnt_u ncsi_tx_frm_cnt;                           /* 400 */
    volatile csr_ncsi_tx_frm_err_cnt_u ncsi_tx_frm_err_cnt;                   /* 404 */
    volatile csr_ncsi_tx_xon_cnt_u ncsi_tx_xon_cnt;                           /* 408 */
    volatile csr_ncsi_tx_xoff_cnt_u ncsi_tx_xoff_cnt;                         /* 40C */
    volatile csr_ncsi_tx_xon_err_cnt_u ncsi_tx_xon_err_cnt;                   /* 410 */
    volatile csr_ncsi_tx_empty_err_cnt_u ncsi_tx_empty_err_cnt;               /* 414 */
    volatile csr_ncsi_tx_cur_st_u ncsi_tx_cur_st;                             /* 500 */
    volatile csr_ncsi_pause_frm_cur_st_u ncsi_pause_frm_cur_st;               /* 504 */
} S_ncsi_mac_csr_REGS_TYPE;

/* Declare the struct pointor of the module ncsi_mac_csr */
extern volatile S_ncsi_mac_csr_REGS_TYPE *gopncsi_mac_csrAllReg;

/* Declare the functions that set the member value */
int iSetNCSI_MAC_VERSION_ncsi_mac_version(unsigned int uncsi_mac_version);
int iSetNCSI_INT_STATUS_mac_fifo_err_int_status(unsigned int umac_fifo_err_int_status);
int iSetNCSI_INT_STATUS_ram0_ucerr_int_status(unsigned int uram0_ucerr_int_status);
int iSetNCSI_INT_STATUS_ram1_ucerr_int_status(unsigned int uram1_ucerr_int_status);
int iSetNCSI_INT_STATUS_ram2_ucerr_int_status(unsigned int uram2_ucerr_int_status);
int iSetNCSI_INT_STATUS_ram3_ucerr_int_status(unsigned int uram3_ucerr_int_status);
int iSetNCSI_INT_STATUS_ram4_ucerr_int_status(unsigned int uram4_ucerr_int_status);
int iSetNCSI_INT_STATUS_ncsi_domain_non_stable_int_status(unsigned int uncsi_domain_non_stable_int_status);
int iSetNCSI_INT_EN_mac_fifo_err_int_en(unsigned int umac_fifo_err_int_en);
int iSetNCSI_INT_EN_ram0_ucerr_int_en(unsigned int uram0_ucerr_int_en);
int iSetNCSI_INT_EN_ram1_ucerr_int_en(unsigned int uram1_ucerr_int_en);
int iSetNCSI_INT_EN_ram2_ucerr_int_en(unsigned int uram2_ucerr_int_en);
int iSetNCSI_INT_EN_ram3_ucerr_int_en(unsigned int uram3_ucerr_int_en);
int iSetNCSI_INT_EN_ram4_ucerr_int_en(unsigned int uram4_ucerr_int_en);
int iSetNCSI_INT_EN_ncsi_domain_non_stable_int_en(unsigned int uncsi_domain_non_stable_int_en);
int iSetNCSI_INT_SET_mac_fifo_err_int_set(unsigned int umac_fifo_err_int_set);
int iSetNCSI_INT_SET_ram0_ucerr_int_set(unsigned int uram0_ucerr_int_set);
int iSetNCSI_INT_SET_ram1_ucerr_int_set(unsigned int uram1_ucerr_int_set);
int iSetNCSI_INT_SET_ram2_ucerr_int_set(unsigned int uram2_ucerr_int_set);
int iSetNCSI_INT_SET_ram3_ucerr_int_set(unsigned int uram3_ucerr_int_set);
int iSetNCSI_INT_SET_ram4_ucerr_int_set(unsigned int uram4_ucerr_int_set);
int iSetNCSI_INT_SET_ncsi_domain_non_stable_int_set(unsigned int uncsi_domain_non_stable_int_set);
int iSetNCSI_INT_RAW_STATUS_mac_fifo_err_int_raw_status(unsigned int umac_fifo_err_int_raw_status);
int iSetNCSI_INT_RAW_STATUS_ram0_ucerr_int_raw_status(unsigned int uram0_ucerr_int_raw_status);
int iSetNCSI_INT_RAW_STATUS_ram1_ucerr_int_raw_status(unsigned int uram1_ucerr_int_raw_status);
int iSetNCSI_INT_RAW_STATUS_ram2_ucerr_int_raw_status(unsigned int uram2_ucerr_int_raw_status);
int iSetNCSI_INT_RAW_STATUS_ram3_ucerr_int_raw_status(unsigned int uram3_ucerr_int_raw_status);
int iSetNCSI_INT_RAW_STATUS_ram4_ucerr_int_raw_status(unsigned int uram4_ucerr_int_raw_status);
int iSetNCSI_INT_RAW_STATUS_ncsi_domain_non_stable_int_raw_status(unsigned int uncsi_domain_non_stable_int_raw_status);
int iSetNCSI_TP_RAM_TMOD_tp_ram_tmod(unsigned int utp_ram_tmod);
int iSetNCSI_MEM_POWER_MODE_mem_power_mode(unsigned int umem_power_mode);
int iSetNCSI_RAM_ECC_BYPASS_ecc_bypass(unsigned int uecc_bypass);
int iSetNCSI_HW_ARB_BPS_MAC_hw_arb_bps_mac(unsigned int uhw_arb_bps_mac);
int iSetNCSI_XON_XOFF_LEN_xon_frame_len(unsigned int uxon_frame_len);
int iSetNCSI_XON_XOFF_LEN_xoff_frame_len(unsigned int uxoff_frame_len);
int iSetNCSI_XON_FRAME_xon_frame(unsigned int uxon_frame);
int iSetNCSI_XOFF_FRAME_xoff_frame(unsigned int uxoff_frame);
int iSetNCSI_RAM_ECC_ERR_INSR_ram0_cerr_insr(unsigned int uram0_cerr_insr);
int iSetNCSI_RAM_ECC_ERR_INSR_ram1_cerr_insr(unsigned int uram1_cerr_insr);
int iSetNCSI_RAM_ECC_ERR_INSR_ram2_cerr_insr(unsigned int uram2_cerr_insr);
int iSetNCSI_RAM_ECC_ERR_INSR_ram3_cerr_insr(unsigned int uram3_cerr_insr);
int iSetNCSI_RAM_ECC_ERR_INSR_ram0_ucerr_insr(unsigned int uram0_ucerr_insr);
int iSetNCSI_RAM_ECC_ERR_INSR_ram1_ucerr_insr(unsigned int uram1_ucerr_insr);
int iSetNCSI_RAM_ECC_ERR_INSR_ram2_ucerr_insr(unsigned int uram2_ucerr_insr);
int iSetNCSI_RAM_ECC_ERR_INSR_ram3_ucerr_insr(unsigned int uram3_ucerr_insr);
int iSetNCSI_RX_AFIFO_LEVEL_rx_afifo_low_level(unsigned int urx_afifo_low_level);
int iSetNCSI_RX_AFIFO_LEVEL_rx_afifo_high_level(unsigned int urx_afifo_high_level);
int iSetNCSI_RX_AFIFO_AFULL_TH_rx_afifo_afull_th(unsigned int urx_afifo_afull_th);
int iSetNCSI_RCMD_AFIFO_LEVEL_rcmd_afifo_afull_th(unsigned int urcmd_afifo_afull_th);
int iSetNCSI_TX_AFIFO_LEVEL_tx_afifo_afull_th(unsigned int utx_afifo_afull_th);
int iSetNCSI_DOMAIN_CHK_CNT_ncsi_domain_chk_cnt(unsigned int uncsi_domain_chk_cnt);
int iSetNCSI_DOMAIN_CHK_CNT_ncsi_domain_jitter_max(unsigned int uncsi_domain_jitter_max);
int iSetNCSI_DOMAIN_STAT_ncsi_domain_rdy(unsigned int uncsi_domain_rdy);
int iSetNCSI_DOMAIN_STAT_ncsi_domain_rw_en(unsigned int uncsi_domain_rw_en);
int iSetNCSI_DOMAIN_SELF_SHIELD_MODE_ncsi_domain_self_shield_mode(unsigned int uncsi_domain_self_shield_mode);
int iSetNCSI_RAM_CERR_ram0_cerr(unsigned int uram0_cerr);
int iSetNCSI_RAM_CERR_ram1_cerr(unsigned int uram1_cerr);
int iSetNCSI_RAM_CERR_ram2_cerr(unsigned int uram2_cerr);
int iSetNCSI_RAM_CERR_ram3_cerr(unsigned int uram3_cerr);
int iSetNCSI_RAM0_ECC_ERR_ADDR_ram0_err_addr(unsigned int uram0_err_addr);
int iSetNCSI_RAM1_ECC_ERR_ADDR_ram1_err_addr(unsigned int uram1_err_addr);
int iSetNCSI_RAM2_ECC_ERR_ADDR_ram2_err_addr(unsigned int uram2_err_addr);
int iSetNCSI_RAM3_ECC_ERR_ADDR_ram3_err_addr(unsigned int uram3_err_addr);
int iSetNCSI_RX_AFIFO_OF_rx_afifo_of(unsigned int urx_afifo_of);
int iSetNCSI_RX_AFIFO_RCNT_rx_afifo_wcnt(unsigned int urx_afifo_wcnt);
int iSetNCSI_RCMD_AFIFO_OF_rcmd_afifo_of(unsigned int urcmd_afifo_of);
int iSetNCSI_RCMD_AFIFO_RCNT_rcmd_afifo_wcnt(unsigned int urcmd_afifo_wcnt);
int iSetNCSI_DOMAIN_ERR_ncsi_domain_non_stable(unsigned int uncsi_domain_non_stable);
int iSetNCSI_TX_FRM_CNT_tx_frm_cnt(unsigned int utx_frm_cnt);
int iSetNCSI_TX_FRM_ERR_CNT_tx_frm_err_cnt(unsigned int utx_frm_err_cnt);
int iSetNCSI_TX_XON_CNT_tx_xon_cnt(unsigned int utx_xon_cnt);
int iSetNCSI_TX_XOFF_CNT_tx_xoff_cnt(unsigned int utx_xoff_cnt);
int iSetNCSI_TX_XON_ERR_CNT_tx_xon_err_cnt(unsigned int utx_xon_err_cnt);
int iSetNCSI_TX_EMPTY_ERR_CNT_tx_empty_err_cnt(unsigned int utx_empty_err_cnt);
int iSetNCSI_TX_CUR_ST_tx_cur_st(unsigned int utx_cur_st);
int iSetNCSI_PAUSE_FRM_CUR_ST_pause_frm_cur_st(unsigned int upause_frm_cur_st);

/* Define the union csr_duplex_type_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 duplex_sel : 1; /* [0] */
        u32 rsv_0 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_duplex_type_u;

/* Define the union csr_fd_fc_type_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fd_fc_type : 16; /* [15:0] */
        u32 rsv_1 : 16;      /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_fd_fc_type_u;

/* Define the union csr_fc_tx_timer_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fc_tx_timer : 16; /* [15:0] */
        u32 rsv_2 : 16;       /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_fc_tx_timer_u;

/* Define the union csr_fd_fc_addr_low_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fd_fc_addr_low : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_fd_fc_addr_low_u;

/* Define the union csr_fd_fc_addr_high_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fd_fc_addr_high : 16; /* [15:0] */
        u32 rsv_3 : 16;           /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_fd_fc_addr_high_u;

/* Define the union csr_ipg_tx_timer_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ipg_tx_timer : 8; /* [7:0] */
        u32 rsv_4 : 24;       /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ipg_tx_timer_u;

/* Define the union csr_pause_thr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pause_thr : 16; /* [15:0] */
        u32 rsv_5 : 16;     /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pause_thr_u;

/* Define the union csr_max_frm_size_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 max_frm_size : 16; /* [15:0] */
        u32 rsv_6 : 16;        /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_max_frm_size_u;

/* Define the union csr_port_mode_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 port_mode : 4;     /* [3:0] */
        u32 rsv_7 : 4;         /* [7:4] */
        u32 rmii_clk_edge : 1; /* [8] */
        u32 rmii_rst : 1;      /* [9] */
        u32 rsv_8 : 22;        /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_port_mode_u;

/* Define the union csr_port_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_9 : 1;   /* [0] */
        u32 rx_en : 1;   /* [1] */
        u32 tx_en : 1;   /* [2] */
        u32 rsv_10 : 29; /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_port_en_u;

/* Define the union csr_pause_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_fdfc : 1; /* [0] */
        u32 tx_fdfc : 1; /* [1] */
        u32 tx_hdfc : 1; /* [2] */
        u32 rsv_11 : 29; /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pause_en_u;

/* Define the union csr_short_runts_thr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 short_runts_thr : 5; /* [4:0] */
        u32 rsv_12 : 27;         /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_short_runts_thr_u;

/* Define the union csr_an_neg_state_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_13 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_an_neg_state_u;

/* Define the union csr_tx_local_page_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_14 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_local_page_u;

/* Define the union csr_transmit_control_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_15 : 6;     /* [5:0] */
        u32 crc_add : 1;    /* [6] */
        u32 pad_enable : 1; /* [7] */
        u32 rsv_16 : 24;    /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_transmit_control_u;

/* Define the union csr_rec_filt_control_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 uc_match_en : 1;    /* [0] */
        u32 mc_match_en : 1;    /* [1] */
        u32 bc_drop_en : 1;     /* [2] */
        u32 rsv_17 : 1;         /* [3] */
        u32 pause_frm_pass : 1; /* [4] */
        u32 crc_err_pass : 1;   /* [5] */
        u32 rsv_18 : 26;        /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rec_filt_control_u;

/* Define the union csr_ptp_config_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_19 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ptp_config_u;

/* Define the union csr_rx_octets_total_ok_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_octets_total_ok : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_octets_total_ok_u;

/* Define the union csr_rx_octets_bad_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_octets_bad : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_octets_bad_u;

/* Define the union csr_rx_uc_pkts_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_uc_pkts : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_uc_pkts_u;

/* Define the union csr_rx_mc_pkts_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_mc_pkts : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_mc_pkts_u;

/* Define the union csr_rx_bc_pkts_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_bc_pkts : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_bc_pkts_u;

/* Define the union csr_rx_pkts_64octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pkts_64octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_pkts_64octets_u;

/* Define the union csr_rx_pkts_65to127octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pkts_65to127octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_pkts_65to127octets_u;

/* Define the union csr_rx_pkts_128to255octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pkts_128to255octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_pkts_128to255octets_u;

/* Define the union csr_rx_pkts_255to511octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pkts_256to511octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_pkts_255to511octets_u;

/* Define the union csr_rx_pkts_512to1023octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pkts_512to1023octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_pkts_512to1023octets_u;

/* Define the union csr_rx_pkts_1024to1518octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pkts_1024to1518octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_pkts_1024to1518octets_u;

/* Define the union csr_rx_pkts_1519tomaxoctets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pkts_1519tomaxoctes : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_pkts_1519tomaxoctets_u;

/* Define the union csr_rx_fcs_errors_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_fcs_errors : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_fcs_errors_u;

/* Define the union csr_rx_tagged_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_tagged : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_tagged_u;

/* Define the union csr_rx_data_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_data_err : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_data_err_u;

/* Define the union csr_rx_align_errors_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_align_errors : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_align_errors_u;

/* Define the union csr_rx_long_errors_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_long_errors : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_long_errors_u;

/* Define the union csr_rx_jabber_errors_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_jabber_errors : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_jabber_errors_u;

/* Define the union csr_rx_pause_maccontrol_framcounter_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_pause_maccontrol_framecounter : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_pause_maccontrol_framcounter_u;

/* Define the union csr_rx_unknown_maccontrol_framcounter_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_unknown_maccontrol_framecounter : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_unknown_maccontrol_framcounter_u;

/* Define the union csr_rx_very_long_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_very_long_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_very_long_err_cnt_u;

/* Define the union csr_rx_runt_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_runt_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_runt_err_cnt_u;

/* Define the union csr_rx_short_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_short_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_short_err_cnt_u;

/* Define the union csr_rx_filt_pkt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_filt_pkt_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_filt_pkt_cnt_u;

/* Define the union csr_rx_octets_total_filt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_octets_total_filt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_octets_total_filt_u;

/* Define the union csr_octets_transmitted_ok_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 octets_transmitted_ok : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_octets_transmitted_ok_u;

/* Define the union csr_octets_transmitted_bad_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 octets_transmitted_bad : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_octets_transmitted_bad_u;

/* Define the union csr_tx_uc_pkts_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_uc_pkts : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_uc_pkts_u;

/* Define the union csr_tx_mc_pkts_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_mc_pkts : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_mc_pkts_u;

/* Define the union csr_tx_bc_pkts_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_bc_pkts : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_bc_pkts_u;

/* Define the union csr_tx_pkts_64octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pkts_64octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_pkts_64octets_u;

/* Define the union csr_tx_pkts_65to127octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pkts_65to127octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_pkts_65to127octets_u;

/* Define the union csr_tx_pkts_128to255octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pkts_128to255octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_pkts_128to255octets_u;

/* Define the union csr_tx_pkts_255to511octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pkts_256to511octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_pkts_255to511octets_u;

/* Define the union csr_tx_pkts_512to1023octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pkts_512to1023octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_pkts_512to1023octets_u;

/* Define the union csr_tx_pkts_1024to1518octets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pkts_1024to1518octets : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_pkts_1024to1518octets_u;

/* Define the union csr_tx_pkts_1519tomaxoctets_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pkts_1519tomaxoctes : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_pkts_1519tomaxoctets_u;

/* Define the union csr_tx_underrun_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_underrun : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_underrun_u;

/* Define the union csr_tx_tagged_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_tagged : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_tagged_u;

/* Define the union csr_tx_crc_error_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_crc_error : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_crc_error_u;

/* Define the union csr_tx_pause_frames_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_pause_frames : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_pause_frames_u;

/* Define the union csr_line_loop_back_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 line_loop_back : 1; /* [0] */
        u32 rsv_20 : 31;        /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_line_loop_back_u;

/* Define the union csr_cf_crc_strip_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cf_crc_strip : 1; /* [0] */
        u32 rsv_21 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cf_crc_strip_u;

/* Define the union csr_mode_change_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mode_change_en : 1; /* [0] */
        u32 rsv_22 : 31;        /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mode_change_en_u;

/* Define the union csr_loop_reg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_23 : 1;          /* [0] */
        u32 cf_ext_drive_lp : 1; /* [1] */
        u32 cf2mi_lp_en : 1;     /* [2] */
        u32 rsv_24 : 29;         /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_loop_reg_u;

/* Define the union csr_recv_control_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_25 : 3;       /* [2:0] */
        u32 strip_pad_en : 1; /* [3] */
        u32 runt_pkt_en : 1;  /* [4] */
        u32 rsv_26 : 27;      /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_recv_control_u;

/* Define the union csr_vlan_code_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_27 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_vlan_code_u;

/* Define the union csr_rx_overrun_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_overrun_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_overrun_cnt_u;

/* Define the union csr_rx_lengthfield_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_lengthfield_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_lengthfield_err_cnt_u;

/* Define the union csr_rx_fail_comma_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_fail_comma_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_fail_comma_cnt_u;

/* Define the union csr_station_addr_low_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_low_0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_low_0_u;

/* Define the union csr_station_addr_high_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_high_0 : 16; /* [15:0] */
        u32 rsv_28 : 16;              /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_high_0_u;

/* Define the union csr_station_addr_low_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_low_1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_low_1_u;

/* Define the union csr_station_addr_high_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_high_1 : 16; /* [15:0] */
        u32 rsv_29 : 16;              /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_high_1_u;

/* Define the union csr_station_addr_low_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_low_2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_low_2_u;

/* Define the union csr_station_addr_high_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_high_2 : 16; /* [15:0] */
        u32 rsv_30 : 16;              /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_high_2_u;

/* Define the union csr_station_addr_low_3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_low_3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_low_3_u;

/* Define the union csr_station_addr_high_3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_high_3 : 16; /* [15:0] */
        u32 rsv_31 : 16;              /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_high_3_u;

/* Define the union csr_station_addr_low_4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_low_4 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_low_4_u;

/* Define the union csr_station_addr_high_4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_high_4 : 16; /* [15:0] */
        u32 rsv_32 : 16;              /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_high_4_u;

/* Define the union csr_station_addr_low_5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_low_5 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_low_5_u;

/* Define the union csr_station_addr_high_5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_high_5 : 16; /* [15:0] */
        u32 rsv_33 : 16;              /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_high_5_u;

/* Define the union csr_station_addr_low_msk_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_low_msk_0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_low_msk_0_u;

/* Define the union csr_station_addr_high_msk_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_high_msk_0 : 16; /* [15:0] */
        u32 rsv_34 : 16;                  /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_high_msk_0_u;

/* Define the union csr_station_addr_low_msk_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_low_msk_1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_low_msk_1_u;

/* Define the union csr_station_addr_high_msk_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 station_addr_high_msk_1 : 16; /* [15:0] */
        u32 rsv_35 : 16;                  /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_station_addr_high_msk_1_u;

/* Define the union csr_mac_skip_len_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mac_skip_len : 6; /* [5:0] */
        u32 mac_skip_crc : 1; /* [6] */
        u32 rsv_36 : 25;      /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mac_skip_len_u;

/* Define the union csr_debug_rd_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_37 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_debug_rd_data_u;

/* Define the union csr_debug_pkt_ptr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_38 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_debug_pkt_ptr_u;

/* Define the union csr_debug_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_39 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_debug_en_u;

/* Define the union csr_intr_state_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_40 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_intr_state_u;

/* Define the union csr_intr_clr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_41 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_intr_clr_u;

/* Define the union csr_intr_msk_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_42 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_intr_msk_u;

/* Define the union csr_seq_id_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_43 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_seq_id_u;

/* Define the union csr_stp_63_to_32_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_44 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_stp_63_to_32_u;

/* Define the union csr_stp_31_to_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_45 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_stp_31_to_0_u;

/* Define the union csr_dbg_grp0_vld_words_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_46 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_dbg_grp0_vld_words_u;

/* Define the union csr_dbg_grp1_vld_words_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_47 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_dbg_grp1_vld_words_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_duplex_type_u duplex_type;                                             /* 8 */
    volatile csr_fd_fc_type_u fd_fc_type;                                               /* C */
    volatile csr_fc_tx_timer_u fc_tx_timer;                                             /* 1C */
    volatile csr_fd_fc_addr_low_u fd_fc_addr_low;                                       /* 20 */
    volatile csr_fd_fc_addr_high_u fd_fc_addr_high;                                     /* 24 */
    volatile csr_ipg_tx_timer_u ipg_tx_timer;                                           /* 30 */
    volatile csr_pause_thr_u pause_thr;                                                 /* 38 */
    volatile csr_max_frm_size_u max_frm_size;                                           /* 3C */
    volatile csr_port_mode_u port_mode;                                                 /* 40 */
    volatile csr_port_en_u port_en;                                                     /* 44 */
    volatile csr_pause_en_u pause_en;                                                   /* 48 */
    volatile csr_short_runts_thr_u short_runts_thr;                                     /* 50 */
    volatile csr_an_neg_state_u an_neg_state;                                           /* 58 */
    volatile csr_tx_local_page_u tx_local_page;                                         /* 5C */
    volatile csr_transmit_control_u transmit_control;                                   /* 60 */
    volatile csr_rec_filt_control_u rec_filt_control;                                   /* 64 */
    volatile csr_ptp_config_u ptp_config;                                               /* 74 */
    volatile csr_rx_octets_total_ok_u rx_octets_total_ok;                               /* 80 */
    volatile csr_rx_octets_bad_u rx_octets_bad;                                         /* 84 */
    volatile csr_rx_uc_pkts_u rx_uc_pkts;                                               /* 88 */
    volatile csr_rx_mc_pkts_u rx_mc_pkts;                                               /* 8C */
    volatile csr_rx_bc_pkts_u rx_bc_pkts;                                               /* 90 */
    volatile csr_rx_pkts_64octets_u rx_pkts_64octets;                                   /* 94 */
    volatile csr_rx_pkts_65to127octets_u rx_pkts_65to127octets;                         /* 98 */
    volatile csr_rx_pkts_128to255octets_u rx_pkts_128to255octets;                       /* 9C */
    volatile csr_rx_pkts_255to511octets_u rx_pkts_255to511octets;                       /* A0 */
    volatile csr_rx_pkts_512to1023octets_u rx_pkts_512to1023octets;                     /* A4 */
    volatile csr_rx_pkts_1024to1518octets_u rx_pkts_1024to1518octets;                   /* A8 */
    volatile csr_rx_pkts_1519tomaxoctets_u rx_pkts_1519tomaxoctets;                     /* AC */
    volatile csr_rx_fcs_errors_u rx_fcs_errors;                                         /* B0 */
    volatile csr_rx_tagged_u rx_tagged;                                                 /* B4 */
    volatile csr_rx_data_err_u rx_data_err;                                             /* B8 */
    volatile csr_rx_align_errors_u rx_align_errors;                                     /* BC */
    volatile csr_rx_long_errors_u rx_long_errors;                                       /* C0 */
    volatile csr_rx_jabber_errors_u rx_jabber_errors;                                   /* C4 */
    volatile csr_rx_pause_maccontrol_framcounter_u rx_pause_maccontrol_framcounter;     /* C8 */
    volatile csr_rx_unknown_maccontrol_framcounter_u rx_unknown_maccontrol_framcounter; /* CC */
    volatile csr_rx_very_long_err_cnt_u rx_very_long_err_cnt;                           /* D0 */
    volatile csr_rx_runt_err_cnt_u rx_runt_err_cnt;                                     /* D4 */
    volatile csr_rx_short_err_cnt_u rx_short_err_cnt;                                   /* D8 */
    volatile csr_rx_filt_pkt_cnt_u rx_filt_pkt_cnt;                                     /* E8 */
    volatile csr_rx_octets_total_filt_u rx_octets_total_filt;                           /* EC */
    volatile csr_octets_transmitted_ok_u octets_transmitted_ok;                         /* 100 */
    volatile csr_octets_transmitted_bad_u octets_transmitted_bad;                       /* 104 */
    volatile csr_tx_uc_pkts_u tx_uc_pkts;                                               /* 108 */
    volatile csr_tx_mc_pkts_u tx_mc_pkts;                                               /* 10C */
    volatile csr_tx_bc_pkts_u tx_bc_pkts;                                               /* 110 */
    volatile csr_tx_pkts_64octets_u tx_pkts_64octets;                                   /* 114 */
    volatile csr_tx_pkts_65to127octets_u tx_pkts_65to127octets;                         /* 118 */
    volatile csr_tx_pkts_128to255octets_u tx_pkts_128to255octets;                       /* 11C */
    volatile csr_tx_pkts_255to511octets_u tx_pkts_255to511octets;                       /* 120 */
    volatile csr_tx_pkts_512to1023octets_u tx_pkts_512to1023octets;                     /* 124 */
    volatile csr_tx_pkts_1024to1518octets_u tx_pkts_1024to1518octets;                   /* 128 */
    volatile csr_tx_pkts_1519tomaxoctets_u tx_pkts_1519tomaxoctets;                     /* 12C */
    volatile csr_tx_underrun_u tx_underrun;                                             /* 150 */
    volatile csr_tx_tagged_u tx_tagged;                                                 /* 154 */
    volatile csr_tx_crc_error_u tx_crc_error;                                           /* 158 */
    volatile csr_tx_pause_frames_u tx_pause_frames;                                     /* 15C */
    volatile csr_line_loop_back_u line_loop_back;                                       /* 1A8 */
    volatile csr_cf_crc_strip_u cf_crc_strip;                                           /* 1B0 */
    volatile csr_mode_change_en_u mode_change_en;                                       /* 1B4 */
    volatile csr_loop_reg_u loop_reg;                                                   /* 1DC */
    volatile csr_recv_control_u recv_control;                                           /* 1E0 */
    volatile csr_vlan_code_u vlan_code;                                                 /* 1E8 */
    volatile csr_rx_overrun_cnt_u rx_overrun_cnt;                                       /* 1EC */
    volatile csr_rx_lengthfield_err_cnt_u rx_lengthfield_err_cnt;                       /* 1F4 */
    volatile csr_rx_fail_comma_cnt_u rx_fail_comma_cnt;                                 /* 1F8 */
    volatile csr_station_addr_low_0_u station_addr_low_0;                               /* 200 */
    volatile csr_station_addr_high_0_u station_addr_high_0;                             /* 204 */
    volatile csr_station_addr_low_1_u station_addr_low_1;                               /* 208 */
    volatile csr_station_addr_high_1_u station_addr_high_1;                             /* 20C */
    volatile csr_station_addr_low_2_u station_addr_low_2;                               /* 210 */
    volatile csr_station_addr_high_2_u station_addr_high_2;                             /* 214 */
    volatile csr_station_addr_low_3_u station_addr_low_3;                               /* 218 */
    volatile csr_station_addr_high_3_u station_addr_high_3;                             /* 21C */
    volatile csr_station_addr_low_4_u station_addr_low_4;                               /* 220 */
    volatile csr_station_addr_high_4_u station_addr_high_4;                             /* 224 */
    volatile csr_station_addr_low_5_u station_addr_low_5;                               /* 228 */
    volatile csr_station_addr_high_5_u station_addr_high_5;                             /* 22C */
    volatile csr_station_addr_low_msk_0_u station_addr_low_msk_0;                       /* 230 */
    volatile csr_station_addr_high_msk_0_u station_addr_high_msk_0;                     /* 234 */
    volatile csr_station_addr_low_msk_1_u station_addr_low_msk_1;                       /* 238 */
    volatile csr_station_addr_high_msk_1_u station_addr_high_msk_1;                     /* 23C */
    volatile csr_mac_skip_len_u mac_skip_len;                                           /* 240 */
    volatile csr_debug_rd_data_u debug_rd_data[64];                                     /* 244 */
    volatile csr_debug_pkt_ptr_u debug_pkt_ptr;                                         /* 344 */
    volatile csr_debug_en_u debug_en;                                                   /* 348 */
    volatile csr_intr_state_u intr_state;                                               /* 34C */
    volatile csr_intr_clr_u intr_clr;                                                   /* 350 */
    volatile csr_intr_msk_u intr_msk;                                                   /* 354 */
    volatile csr_seq_id_u seq_id;                                                       /* 358 */
    volatile csr_stp_63_to_32_u stp_63_to_32;                                           /* 35C */
    volatile csr_stp_31_to_0_u stp_31_to_0;                                             /* 360 */
    volatile csr_dbg_grp0_vld_words_u dbg_grp0_vld_words;                               /* 364 */
    volatile csr_dbg_grp1_vld_words_u dbg_grp1_vld_words;                               /* 368 */
} S_ncsi_mac_core_REGS_TYPE;

/* Declare the struct pointor of the module ncsi_mac_core */
extern volatile S_ncsi_mac_core_REGS_TYPE *gopncsi_mac_coreAllReg;

/* Declare the functions that set the member value */
int iSetDUPLEX_TYPE_duplex_sel(unsigned int uduplex_sel);
int iSetFD_FC_TYPE_fd_fc_type(unsigned int ufd_fc_type);
int iSetFC_TX_TIMER_fc_tx_timer(unsigned int ufc_tx_timer);
int iSetFD_FC_ADDR_LOW_fd_fc_addr_low(unsigned int ufd_fc_addr_low);
int iSetFD_FC_ADDR_HIGH_fd_fc_addr_high(unsigned int ufd_fc_addr_high);
int iSetIPG_TX_TIMER_ipg_tx_timer(unsigned int uipg_tx_timer);
int iSetPAUSE_THR_pause_thr(unsigned int upause_thr);
int iSetMAX_FRM_SIZE_max_frm_size(unsigned int umax_frm_size);
int iSetPORT_MODE_port_mode(unsigned int uport_mode);
int iSetPORT_MODE_rmii_clk_edge(unsigned int urmii_clk_edge);
int iSetPORT_MODE_rmii_rst(unsigned int urmii_rst);
int iSetPORT_EN_rx_en(unsigned int urx_en);
int iSetPORT_EN_tx_en(unsigned int utx_en);
int iSetPAUSE_EN_rx_fdfc(unsigned int urx_fdfc);
int iSetPAUSE_EN_tx_fdfc(unsigned int utx_fdfc);
int iSetPAUSE_EN_tx_hdfc(unsigned int utx_hdfc);
int iSetSHORT_RUNTS_THR_short_runts_thr(unsigned int ushort_runts_thr);


int iSetTRANSMIT_CONTROL_crc_add(unsigned int ucrc_add);
int iSetTRANSMIT_CONTROL_pad_enable(unsigned int upad_enable);
int iSetREC_FILT_CONTROL_uc_match_en(unsigned int uuc_match_en);
int iSetREC_FILT_CONTROL_mc_match_en(unsigned int umc_match_en);
int iSetREC_FILT_CONTROL_bc_drop_en(unsigned int ubc_drop_en);
int iSetREC_FILT_CONTROL_pause_frm_pass(unsigned int upause_frm_pass);
int iSetREC_FILT_CONTROL_crc_err_pass(unsigned int ucrc_err_pass);

int iSetRX_OCTETS_TOTAL_OK_rx_octets_total_ok(unsigned int urx_octets_total_ok);
int iSetRX_OCTETS_BAD_rx_octets_bad(unsigned int urx_octets_bad);
int iSetRX_UC_PKTS_rx_uc_pkts(unsigned int urx_uc_pkts);
int iSetRX_MC_PKTS_rx_mc_pkts(unsigned int urx_mc_pkts);
int iSetRX_BC_PKTS_rx_bc_pkts(unsigned int urx_bc_pkts);
int iSetRX_PKTS_64OCTETS_rx_pkts_64octets(unsigned int urx_pkts_64octets);
int iSetRX_PKTS_65TO127OCTETS_rx_pkts_65to127octets(unsigned int urx_pkts_65to127octets);
int iSetRX_PKTS_128TO255OCTETS_rx_pkts_128to255octets(unsigned int urx_pkts_128to255octets);
int iSetRX_PKTS_255TO511OCTETS_rx_pkts_256to511octets(unsigned int urx_pkts_256to511octets);
int iSetRX_PKTS_512TO1023OCTETS_rx_pkts_512to1023octets(unsigned int urx_pkts_512to1023octets);
int iSetRX_PKTS_1024TO1518OCTETS_rx_pkts_1024to1518octets(unsigned int urx_pkts_1024to1518octets);
int iSetRX_PKTS_1519TOMAXOCTETS_rx_pkts_1519tomaxoctes(unsigned int urx_pkts_1519tomaxoctes);
int iSetRX_FCS_ERRORS_rx_fcs_errors(unsigned int urx_fcs_errors);
int iSetRX_TAGGED_rx_tagged(unsigned int urx_tagged);
int iSetRX_DATA_ERR_rx_data_err(unsigned int urx_data_err);
int iSetRX_ALIGN_ERRORS_rx_align_errors(unsigned int urx_align_errors);
int iSetRX_LONG_ERRORS_rx_long_errors(unsigned int urx_long_errors);
int iSetRX_JABBER_ERRORS_rx_jabber_errors(unsigned int urx_jabber_errors);
int iSetRX_PAUSE_MACCONTROL_FRAMCOUNTER_rx_pause_maccontrol_framecounter(
    unsigned int urx_pause_maccontrol_framecounter);
int iSetRX_UNKNOWN_MACCONTROL_FRAMCOUNTER_rx_unknown_maccontrol_framecounter(
    unsigned int urx_unknown_maccontrol_framecounter);
int iSetRX_VERY_LONG_ERR_CNT_rx_very_long_err_cnt(unsigned int urx_very_long_err_cnt);
int iSetRX_RUNT_ERR_CNT_rx_runt_err_cnt(unsigned int urx_runt_err_cnt);
int iSetRX_SHORT_ERR_CNT_rx_short_err_cnt(unsigned int urx_short_err_cnt);
int iSetRX_FILT_PKT_CNT_rx_filt_pkt_cnt(unsigned int urx_filt_pkt_cnt);
int iSetRX_OCTETS_TOTAL_FILT_rx_octets_total_filt(unsigned int urx_octets_total_filt);
int iSetOCTETS_TRANSMITTED_OK_octets_transmitted_ok(unsigned int uoctets_transmitted_ok);
int iSetOCTETS_TRANSMITTED_BAD_octets_transmitted_bad(unsigned int uoctets_transmitted_bad);
int iSetTX_UC_PKTS_tx_uc_pkts(unsigned int utx_uc_pkts);
int iSetTX_MC_PKTS_tx_mc_pkts(unsigned int utx_mc_pkts);
int iSetTX_BC_PKTS_tx_bc_pkts(unsigned int utx_bc_pkts);
int iSetTX_PKTS_64OCTETS_tx_pkts_64octets(unsigned int utx_pkts_64octets);
int iSetTX_PKTS_65TO127OCTETS_tx_pkts_65to127octets(unsigned int utx_pkts_65to127octets);
int iSetTX_PKTS_128TO255OCTETS_tx_pkts_128to255octets(unsigned int utx_pkts_128to255octets);
int iSetTX_PKTS_255TO511OCTETS_tx_pkts_256to511octets(unsigned int utx_pkts_256to511octets);
int iSetTX_PKTS_512TO1023OCTETS_tx_pkts_512to1023octets(unsigned int utx_pkts_512to1023octets);
int iSetTX_PKTS_1024TO1518OCTETS_tx_pkts_1024to1518octets(unsigned int utx_pkts_1024to1518octets);
int iSetTX_PKTS_1519TOMAXOCTETS_tx_pkts_1519tomaxoctes(unsigned int utx_pkts_1519tomaxoctes);
int iSetTX_UNDERRUN_tx_underrun(unsigned int utx_underrun);
int iSetTX_TAGGED_tx_tagged(unsigned int utx_tagged);
int iSetTX_CRC_ERROR_tx_crc_error(unsigned int utx_crc_error);
int iSetTX_PAUSE_FRAMES_tx_pause_frames(unsigned int utx_pause_frames);
int iSetLINE_LOOP_BACK_line_loop_back(unsigned int uline_loop_back);
int iSetCF_CRC_STRIP_cf_crc_strip(unsigned int ucf_crc_strip);
int iSetMODE_CHANGE_EN_mode_change_en(unsigned int umode_change_en);
int iSetLOOP_REG_cf_ext_drive_lp(unsigned int ucf_ext_drive_lp);
int iSetLOOP_REG_cf2mi_lp_en(unsigned int ucf2mi_lp_en);
int iSetRECV_CONTROL_strip_pad_en(unsigned int ustrip_pad_en);
int iSetRECV_CONTROL_runt_pkt_en(unsigned int urunt_pkt_en);

int iSetRX_OVERRUN_CNT_rx_overrun_cnt(unsigned int urx_overrun_cnt);
int iSetRX_LENGTHFIELD_ERR_CNT_rx_lengthfield_err_cnt(unsigned int urx_lengthfield_err_cnt);
int iSetRX_FAIL_COMMA_CNT_rx_fail_comma_cnt(unsigned int urx_fail_comma_cnt);
int iSetSTATION_ADDR_LOW_0_station_addr_low_0(unsigned int ustation_addr_low_0);
int iSetSTATION_ADDR_HIGH_0_station_addr_high_0(unsigned int ustation_addr_high_0);
int iSetSTATION_ADDR_LOW_1_station_addr_low_1(unsigned int ustation_addr_low_1);
int iSetSTATION_ADDR_HIGH_1_station_addr_high_1(unsigned int ustation_addr_high_1);
int iSetSTATION_ADDR_LOW_2_station_addr_low_2(unsigned int ustation_addr_low_2);
int iSetSTATION_ADDR_HIGH_2_station_addr_high_2(unsigned int ustation_addr_high_2);
int iSetSTATION_ADDR_LOW_3_station_addr_low_3(unsigned int ustation_addr_low_3);
int iSetSTATION_ADDR_HIGH_3_station_addr_high_3(unsigned int ustation_addr_high_3);
int iSetSTATION_ADDR_LOW_4_station_addr_low_4(unsigned int ustation_addr_low_4);
int iSetSTATION_ADDR_HIGH_4_station_addr_high_4(unsigned int ustation_addr_high_4);
int iSetSTATION_ADDR_LOW_5_station_addr_low_5(unsigned int ustation_addr_low_5);
int iSetSTATION_ADDR_HIGH_5_station_addr_high_5(unsigned int ustation_addr_high_5);
int iSetSTATION_ADDR_LOW_MSK_0_station_addr_low_msk_0(unsigned int ustation_addr_low_msk_0);
int iSetSTATION_ADDR_HIGH_MSK_0_station_addr_high_msk_0(unsigned int ustation_addr_high_msk_0);
int iSetSTATION_ADDR_LOW_MSK_1_station_addr_low_msk_1(unsigned int ustation_addr_low_msk_1);
int iSetSTATION_ADDR_HIGH_MSK_1_station_addr_high_msk_1(unsigned int ustation_addr_high_msk_1);
int iSetMAC_SKIP_LEN_mac_skip_len(unsigned int umac_skip_len);
int iSetMAC_SKIP_LEN_mac_skip_crc(unsigned int umac_skip_crc);


/* Define the union csr_ckd_int_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ckd_int_sta : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_int_sta_u;

/* Define the union csr_pll_int_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pll_lock : 22; /* [21:0] */
        u32 rsv_0 : 10;    /* [31:22] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pll_int_sta_u;

/* Define the union csr_ckd_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ckd_int_mask : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_int_mask_u;

/* Define the union csr_ckd_pll_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ckd_pll_int_mask : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_pll_int_mask_u;

/* Define the union csr_ckd_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ckd_int_set : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_int_set_u;

/* Define the union csr_ckd_pll_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ckd_pll_int_set : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_pll_int_set_u;

/* Define the union csr_ckd_err_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ckd_err_sta : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_err_sta_u;

/* Define the union csr_pll_lock_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pll_lock_sta : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pll_lock_sta_u;

/* Define the union csr_ckd_ok_int_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_ok_int_sta_u;

/* Define the union csr_ckd_ok_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ckd_ok_int_mask : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_ok_int_mask_u;

/* Define the union csr_ckd_ok_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ckd_ok_int_set : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_ok_int_set_u;

/* Define the union csr_ckd_clk_ok_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cld_ok_sta : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ckd_clk_ok_sta_u;

/* Define the union csr_det_clk_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 det_clk_en : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_det_clk_en_u;

/* Define the union csr_det_pll_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 det_pll_en : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_det_pll_en_u;

/* Define the union csr_det_clk_ok_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 det_pll_en : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_det_clk_ok_en_u;

/* Define the union csr_det_clk_ok_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clk_ok_cnt : 16; /* [15:0] */
        u32 rsv_2 : 16;      /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_det_clk_ok_cnt_u;

/* Define the union csr_det_clk_min_width_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 det_clk_min_width : 16; /* [15:0] */
        u32 rsv_3 : 16;             /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_det_clk_min_width_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_ckd_int_sta_u ckd_int_sta;                 /* 10 */
    volatile csr_pll_int_sta_u pll_int_sta;                 /* 14 */
    volatile csr_ckd_int_mask_u ckd_int_mask;               /* 20 */
    volatile csr_ckd_pll_int_mask_u ckd_pll_int_mask;       /* 24 */
    volatile csr_ckd_int_set_u ckd_int_set;                 /* 30 */
    volatile csr_ckd_pll_int_set_u ckd_pll_int_set;         /* 34 */
    volatile csr_ckd_err_sta_u ckd_err_sta;                 /* 40 */
    volatile csr_pll_lock_sta_u pll_lock_sta;               /* 44 */
    volatile csr_ckd_ok_int_sta_u ckd_ok_int_sta;           /* 48 */
    volatile csr_ckd_ok_int_mask_u ckd_ok_int_mask;         /* 4C */
    volatile csr_ckd_ok_int_set_u ckd_ok_int_set;           /* 50 */
    volatile csr_ckd_clk_ok_sta_u ckd_clk_ok_sta;           /* 54 */
    volatile csr_det_clk_en_u det_clk_en;                   /* A0 */
    volatile csr_det_pll_en_u det_pll_en;                   /* A4 */
    volatile csr_det_clk_ok_en_u det_clk_ok_en;             /* A8 */
    volatile csr_det_clk_ok_cnt_u det_clk_ok_cnt;           /* AC */
    volatile csr_det_clk_min_width_u det_clk_min_width[32]; /* B0 */
} S_clk_det0_REGS_TYPE;

/* Declare the struct pointor of the module clk_det0 */
extern volatile S_clk_det0_REGS_TYPE *gopclk_det0AllReg;

/* Declare the functions that set the member value */
int iSetCKD_INT_STA_ckd_int_sta(unsigned int uckd_int_sta);
int iSetPLL_INT_STA_pll_lock(unsigned int upll_lock);
int iSetCKD_INT_MASK_ckd_int_mask(unsigned int uckd_int_mask);
int iSetCKD_PLL_INT_MASK_ckd_pll_int_mask(unsigned int uckd_pll_int_mask);
int iSetCKD_INT_SET_ckd_int_set(unsigned int uckd_int_set);
int iSetCKD_PLL_INT_SET_ckd_pll_int_set(unsigned int uckd_pll_int_set);
int iSetCKD_ERR_STA_ckd_err_sta(unsigned int uckd_err_sta);
int iSetPLL_LOCK_STA_pll_lock_sta(unsigned int upll_lock_sta);

int iSetCKD_OK_INT_MASK_ckd_ok_int_mask(unsigned int uckd_ok_int_mask);
int iSetCKD_OK_INT_SET_ckd_ok_int_set(unsigned int uckd_ok_int_set);
int iSetCKD_CLK_OK_STA_cld_ok_sta(unsigned int ucld_ok_sta);
int iSetDET_CLK_EN_det_clk_en(unsigned int udet_clk_en);
int iSetDET_PLL_EN_det_pll_en(unsigned int udet_pll_en);
int iSetDET_CLK_OK_EN_det_pll_en(unsigned int udet_pll_en);
int iSetDET_CLK_OK_CNT_clk_ok_cnt(unsigned int uclk_ok_cnt);
int iSetDET_CLK_MIN_WIDTH_det_clk_min_width(unsigned int udet_clk_min_width);

/* Define the union csr_i2c_awaddr0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_awaddr0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_awaddr0_u;

/* Define the union csr_i2c_awaddr1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_awaddr1 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_awaddr1_u;

/* Define the union csr_i2c_awaddr2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_awaddr2 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_awaddr2_u;

/* Define the union csr_i2c_awaddr3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_awaddr3 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_awaddr3_u;

/* Define the union csr_i2c_wdata0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_wdata0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_wdata0_u;

/* Define the union csr_i2c_wdata1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_wdata0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_wdata1_u;

/* Define the union csr_i2c_wdata2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_wdata0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_wdata2_u;

/* Define the union csr_i2c_wdata3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_wdata0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_wdata3_u;

/* Define the union csr_i2c_wdata4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_wdata0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_wdata4_u;

/* Define the union csr_i2c_wdata5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_wdata0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_wdata5_u;

/* Define the union csr_i2c_wdata6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_wdata0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_wdata6_u;

/* Define the union csr_i2c_wdata7_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_wdata0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_wdata7_u;

/* Define the union csr_i2c_wstrb_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_wstrb : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_wstrb_u;

/* Define the union csr_i2c_awsize_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_awsize : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_awsize_u;

/* Define the union csr_i2c_awid_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_awid : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_awid_u;

/* Define the union csr_i2c_awlock_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_awlock : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_awlock_u;

/* Define the union csr_i2c_awcache_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_awcache : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_awcache_u;

/* Define the union csr_i2c_awprot_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_awprot : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_awprot_u;

/* Define the union csr_i2c_araddr0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_araddr0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_araddr0_u;

/* Define the union csr_i2c_araddr1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_araddr1 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_araddr1_u;

/* Define the union csr_i2c_araddr2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_araddr2 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_araddr2_u;

/* Define the union csr_i2c_araddr3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_araddr3 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_araddr3_u;

/* Define the union csr_i2c_arsize_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_arsize : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_arsize_u;

/* Define the union csr_i2c_arid_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_arid : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_arid_u;

/* Define the union csr_i2c_arlock_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_arlock : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_arlock_u;

/* Define the union csr_i2c_arcache_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_arcache : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_arcache_u;

/* Define the union csr_i2c_arprot_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_arprot : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_arprot_u;

/* Define the union csr_axi_bresp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_bresp : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_bresp_u;

/* Define the union csr_axi_bid_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_bid : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_bid_u;

/* Define the union csr_axi_rresp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rresp : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rresp_u;

/* Define the union csr_axi_rdata0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rdata0 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rdata0_u;

/* Define the union csr_axi_rdata1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rdata1 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rdata1_u;

/* Define the union csr_axi_rdata2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rdata2 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rdata2_u;

/* Define the union csr_axi_rdata3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rdata3 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rdata3_u;

/* Define the union csr_axi_rdata4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rdata4 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rdata4_u;

/* Define the union csr_axi_rdata5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rdata5 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rdata5_u;

/* Define the union csr_axi_rdata6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rdata6 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rdata6_u;

/* Define the union csr_axi_rdata7_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rdata7 : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rdata7_u;

/* Define the union csr_axi_rid_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rid : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rid_u;

/* Define the union csr_wr_rd_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wr_rd_cmd : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wr_rd_cmd_u;

/* Define the union csr_version_number_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 version_number : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_version_number_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_i2c_awaddr0_u i2c_awaddr0;       /* 0 */
    volatile csr_i2c_awaddr1_u i2c_awaddr1;       /* 1 */
    volatile csr_i2c_awaddr2_u i2c_awaddr2;       /* 2 */
    volatile csr_i2c_awaddr3_u i2c_awaddr3;       /* 3 */
    volatile csr_i2c_wdata0_u i2c_wdata0;         /* 4 */
    volatile csr_i2c_wdata1_u i2c_wdata1;         /* 5 */
    volatile csr_i2c_wdata2_u i2c_wdata2;         /* 6 */
    volatile csr_i2c_wdata3_u i2c_wdata3;         /* 7 */
    volatile csr_i2c_wdata4_u i2c_wdata4;         /* 8 */
    volatile csr_i2c_wdata5_u i2c_wdata5;         /* 9 */
    volatile csr_i2c_wdata6_u i2c_wdata6;         /* A */
    volatile csr_i2c_wdata7_u i2c_wdata7;         /* B */
    volatile csr_i2c_wstrb_u i2c_wstrb;           /* C */
    volatile csr_i2c_awsize_u i2c_awsize;         /* D */
    volatile csr_i2c_awid_u i2c_awid;             /* E */
    volatile csr_i2c_awlock_u i2c_awlock;         /* F */
    volatile csr_i2c_awcache_u i2c_awcache;       /* 10 */
    volatile csr_i2c_awprot_u i2c_awprot;         /* 11 */
    volatile csr_i2c_araddr0_u i2c_araddr0;       /* 30 */
    volatile csr_i2c_araddr1_u i2c_araddr1;       /* 31 */
    volatile csr_i2c_araddr2_u i2c_araddr2;       /* 32 */
    volatile csr_i2c_araddr3_u i2c_araddr3;       /* 33 */
    volatile csr_i2c_arsize_u i2c_arsize;         /* 34 */
    volatile csr_i2c_arid_u i2c_arid;             /* 35 */
    volatile csr_i2c_arlock_u i2c_arlock;         /* 36 */
    volatile csr_i2c_arcache_u i2c_arcache;       /* 37 */
    volatile csr_i2c_arprot_u i2c_arprot;         /* 38 */
    volatile csr_axi_bresp_u axi_bresp;           /* 60 */
    volatile csr_axi_bid_u axi_bid;               /* 61 */
    volatile csr_axi_rresp_u axi_rresp;           /* 70 */
    volatile csr_axi_rdata0_u axi_rdata0;         /* 71 */
    volatile csr_axi_rdata1_u axi_rdata1;         /* 72 */
    volatile csr_axi_rdata2_u axi_rdata2;         /* 73 */
    volatile csr_axi_rdata3_u axi_rdata3;         /* 74 */
    volatile csr_axi_rdata4_u axi_rdata4;         /* 75 */
    volatile csr_axi_rdata5_u axi_rdata5;         /* 76 */
    volatile csr_axi_rdata6_u axi_rdata6;         /* 77 */
    volatile csr_axi_rdata7_u axi_rdata7;         /* 78 */
    volatile csr_axi_rid_u axi_rid;               /* 79 */
    volatile csr_wr_rd_cmd_u wr_rd_cmd;           /* 80 */
    volatile csr_version_number_u version_number; /* 90 */
} S_i2c2axi_REGS_TYPE;

/* Declare the struct pointor of the module i2c2axi */
extern volatile S_i2c2axi_REGS_TYPE *gopi2c2axiAllReg;

/* Declare the functions that set the member value */
int iSetI2C_AWADDR0_i2c_awaddr0(unsigned int ui2c_awaddr0);
int iSetI2C_AWADDR1_i2c_awaddr1(unsigned int ui2c_awaddr1);
int iSetI2C_AWADDR2_i2c_awaddr2(unsigned int ui2c_awaddr2);
int iSetI2C_AWADDR3_i2c_awaddr3(unsigned int ui2c_awaddr3);
int iSetI2C_WDATA0_i2c_wdata0(unsigned int ui2c_wdata0);
int iSetI2C_WDATA1_i2c_wdata0(unsigned int ui2c_wdata0);
int iSetI2C_WDATA2_i2c_wdata0(unsigned int ui2c_wdata0);
int iSetI2C_WDATA3_i2c_wdata0(unsigned int ui2c_wdata0);
int iSetI2C_WDATA4_i2c_wdata0(unsigned int ui2c_wdata0);
int iSetI2C_WDATA5_i2c_wdata0(unsigned int ui2c_wdata0);
int iSetI2C_WDATA6_i2c_wdata0(unsigned int ui2c_wdata0);
int iSetI2C_WDATA7_i2c_wdata0(unsigned int ui2c_wdata0);
int iSetI2C_WSTRB_i2c_wstrb(unsigned int ui2c_wstrb);
int iSetI2C_AWSIZE_i2c_awsize(unsigned int ui2c_awsize);
int iSetI2C_AWID_i2c_awid(unsigned int ui2c_awid);
int iSetI2C_AWLOCK_i2c_awlock(unsigned int ui2c_awlock);
int iSetI2C_AWCACHE_i2c_awcache(unsigned int ui2c_awcache);
int iSetI2C_AWPROT_i2c_awprot(unsigned int ui2c_awprot);
int iSetI2C_ARADDR0_i2c_araddr0(unsigned int ui2c_araddr0);
int iSetI2C_ARADDR1_i2c_araddr1(unsigned int ui2c_araddr1);
int iSetI2C_ARADDR2_i2c_araddr2(unsigned int ui2c_araddr2);
int iSetI2C_ARADDR3_i2c_araddr3(unsigned int ui2c_araddr3);
int iSetI2C_ARSIZE_i2c_arsize(unsigned int ui2c_arsize);
int iSetI2C_ARID_i2c_arid(unsigned int ui2c_arid);
int iSetI2C_ARLOCK_i2c_arlock(unsigned int ui2c_arlock);
int iSetI2C_ARCACHE_i2c_arcache(unsigned int ui2c_arcache);
int iSetI2C_ARPROT_i2c_arprot(unsigned int ui2c_arprot);
int iSetAXI_BRESP_axi_bresp(unsigned int uaxi_bresp);
int iSetAXI_BID_axi_bid(unsigned int uaxi_bid);
int iSetAXI_RRESP_axi_rresp(unsigned int uaxi_rresp);
int iSetAXI_RDATA0_axi_rdata0(unsigned int uaxi_rdata0);
int iSetAXI_RDATA1_axi_rdata1(unsigned int uaxi_rdata1);
int iSetAXI_RDATA2_axi_rdata2(unsigned int uaxi_rdata2);
int iSetAXI_RDATA3_axi_rdata3(unsigned int uaxi_rdata3);
int iSetAXI_RDATA4_axi_rdata4(unsigned int uaxi_rdata4);
int iSetAXI_RDATA5_axi_rdata5(unsigned int uaxi_rdata5);
int iSetAXI_RDATA6_axi_rdata6(unsigned int uaxi_rdata6);
int iSetAXI_RDATA7_axi_rdata7(unsigned int uaxi_rdata7);
int iSetAXI_RID_axi_rid(unsigned int uaxi_rid);
int iSetWR_RD_CMD_wr_rd_cmd(unsigned int uwr_rd_cmd);
int iSetVERSION_NUMBER_version_number(unsigned int uversion_number);

/* Define the union csr_spi_rx_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_rx_st : 16; /* [15:0] */
        u32 rsv_0 : 16;     /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_rx_st_u;

/* Define the union csr_spi_tx_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_txdat_len : 11; /* [10:0] */
        u32 pkt_type : 1;       /* [11] */
        u32 spi_pkt_cnt : 4;    /* [15:12] */
        u32 rsv_1 : 16;         /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_tx_st_u;

/* Define the union csr_spi_buf_size_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 buf_size : 11; /* [10:0] */
        u32 rsv_2 : 4;     /* [14:11] */
        u32 ready : 1;     /* [15] */
        u32 rsv_3 : 16;    /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_buf_size_u;

/* Define the union csr_int_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_rxrb_int_st : 1;    /* [0] */
        u32 spi_txrb_int_st : 1;    /* [1] */
        u32 rxfifo_ovfl_intst : 1;  /* [2] */
        u32 txfifo_unfl_int_st : 1; /* [3] */
        u32 rsv_4 : 28;             /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_st_u;

/* Define the union csr_int_ctl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_rxrb_int_en : 1;    /* [0] */
        u32 spi_txrb_int_en : 1;    /* [1] */
        u32 rxfifo_ovfl_int_en : 1; /* [2] */
        u32 txfifo_unfl_int_en : 1; /* [3] */
        u32 rsv_5 : 28;             /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_ctl_u;

/* Define the union csr_int_coll_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_coll : 3;     /* [2:0] */
        u32 rsv_6 : 13;       /* [15:3] */
        u32 coll_timeout : 8; /* [23:16] */
        u32 rsv_7 : 8;        /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_coll_u;

/* Define the union csr_spi_intr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_intr : 1; /* [0] */
        u32 rsv_8 : 31;   /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_intr_u;

/* Define the union csr_spi_bd_ba_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bd_ba : 27; /* [26:0] */
        u32 rsv_9 : 5;  /* [31:27] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_bd_ba_u;

/* Define the union csr_spi_rxbd_pool_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_rxbd_pool : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_rxbd_pool_u;

/* Define the union csr_spi_txbd_pool_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_txbd_pool : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_txbd_pool_u;

/* Define the union csr_spi_rxbd_if_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_rxbd_if : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_rxbd_if_u;

/* Define the union csr_spi_txbd_if_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_txbd_if : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_txbd_if_u;

/* Define the union csr_spi_bd_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rxbd_pool_empty : 1; /* [0] */
        u32 rxbd_pool_full : 1;  /* [1] */
        u32 rsv_10 : 2;          /* [3:2] */
        u32 rxbd_pool_cnt : 4;   /* [7:4] */
        u32 txbd_pool_empty : 1; /* [8] */
        u32 txbd_pool_full : 1;  /* [9] */
        u32 rsv_11 : 2;          /* [11:10] */
        u32 txbd_pool_cnt : 4;   /* [15:12] */
        u32 rxbd_empty : 1;      /* [16] */
        u32 rxbd_full : 1;       /* [17] */
        u32 rsv_12 : 2;          /* [19:18] */
        u32 rxbd_cnt : 4;        /* [23:20] */
        u32 txbd_empty : 1;      /* [24] */
        u32 txbd_full : 1;       /* [25] */
        u32 rsv_13 : 2;          /* [27:26] */
        u32 txbd_cnt : 4;        /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_bd_st_u;

/* Define the union csr_spi_err_st_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rxbd_pool_rdempty : 1; /* [0] */
        u32 rxbd_pool_wrfull : 1;  /* [1] */
        u32 txbd_pool_rdempty : 1; /* [2] */
        u32 txbd_pool_wrfull : 1;  /* [3] */
        u32 rxbd_rdempty : 1;      /* [4] */
        u32 rxbd_wrfull : 1;       /* [5] */
        u32 txbd_rdempty : 1;      /* [6] */
        u32 txbd_wrfull : 1;       /* [7] */
        u32 axi_rd_err : 1;        /* [8] */
        u32 axi_wr_err : 1;        /* [9] */
        u32 txfifo_unfl : 1;       /* [10] */
        u32 rxfifo_ovfl : 1;       /* [11] */
        u32 rxdat_len_ovfl : 1;    /* [12] */
        u32 rsv_14 : 19;           /* [31:13] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_err_st_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_spi_rx_st_u spi_rx_st;         /* 0 */
    volatile csr_spi_tx_st_u spi_tx_st;         /* 4 */
    volatile csr_spi_buf_size_u spi_buf_size;   /* 8 */
    volatile csr_int_st_u int_st;               /* 10 */
    volatile csr_int_ctl_u int_ctl;             /* 14 */
    volatile csr_int_coll_u int_coll;           /* 18 */
    volatile csr_spi_intr_u spi_intr;           /* 1C */
    volatile csr_spi_bd_ba_u spi_bd_ba;         /* 20 */
    volatile csr_spi_rxbd_pool_u spi_rxbd_pool; /* 30 */
    volatile csr_spi_txbd_pool_u spi_txbd_pool; /* 34 */
    volatile csr_spi_rxbd_if_u spi_rxbd_if;     /* 38 */
    volatile csr_spi_txbd_if_u spi_txbd_if;     /* 3C */
    volatile csr_spi_bd_st_u spi_bd_st;         /* 40 */
    volatile csr_spi_err_st_u spi_err_st;       /* 44 */
} S_spi2axi_REGS_TYPE;

/* Declare the struct pointor of the module spi2axi */
extern volatile S_spi2axi_REGS_TYPE *gopspi2axiAllReg;

/* Declare the functions that set the member value */
int iSetSPI_RX_ST_spi_rx_st(unsigned int uspi_rx_st);
int iSetSPI_TX_ST_spi_txdat_len(unsigned int uspi_txdat_len);
int iSetSPI_TX_ST_pkt_type(unsigned int upkt_type);
int iSetSPI_TX_ST_spi_pkt_cnt(unsigned int uspi_pkt_cnt);
int iSetSPI_BUF_SIZE_buf_size(unsigned int ubuf_size);
int iSetSPI_BUF_SIZE_ready(unsigned int uready);
int iSetINT_ST_spi_rxrb_int_st(unsigned int uspi_rxrb_int_st);
int iSetINT_ST_spi_txrb_int_st(unsigned int uspi_txrb_int_st);
int iSetINT_ST_rxfifo_ovfl_intst(unsigned int urxfifo_ovfl_intst);
int iSetINT_ST_txfifo_unfl_int_st(unsigned int utxfifo_unfl_int_st);
int iSetINT_CTL_spi_rxrb_int_en(unsigned int uspi_rxrb_int_en);
int iSetINT_CTL_spi_txrb_int_en(unsigned int uspi_txrb_int_en);
int iSetINT_CTL_rxfifo_ovfl_int_en(unsigned int urxfifo_ovfl_int_en);
int iSetINT_CTL_txfifo_unfl_int_en(unsigned int utxfifo_unfl_int_en);
int iSetINT_COLL_int_coll(unsigned int uint_coll);
int iSetINT_COLL_coll_timeout(unsigned int ucoll_timeout);
int iSetSPI_INTR_spi_intr(unsigned int uspi_intr);
int iSetSPI_BD_BA_bd_ba(unsigned int ubd_ba);
int iSetSPI_RXBD_POOL_spi_rxbd_pool(unsigned int uspi_rxbd_pool);
int iSetSPI_TXBD_POOL_spi_txbd_pool(unsigned int uspi_txbd_pool);
int iSetSPI_RXBD_IF_spi_rxbd_if(unsigned int uspi_rxbd_if);
int iSetSPI_TXBD_IF_spi_txbd_if(unsigned int uspi_txbd_if);
int iSetSPI_BD_ST_rxbd_pool_empty(unsigned int urxbd_pool_empty);
int iSetSPI_BD_ST_rxbd_pool_full(unsigned int urxbd_pool_full);
int iSetSPI_BD_ST_rxbd_pool_cnt(unsigned int urxbd_pool_cnt);
int iSetSPI_BD_ST_txbd_pool_empty(unsigned int utxbd_pool_empty);
int iSetSPI_BD_ST_txbd_pool_full(unsigned int utxbd_pool_full);
int iSetSPI_BD_ST_txbd_pool_cnt(unsigned int utxbd_pool_cnt);
int iSetSPI_BD_ST_rxbd_empty(unsigned int urxbd_empty);
int iSetSPI_BD_ST_rxbd_full(unsigned int urxbd_full);
int iSetSPI_BD_ST_rxbd_cnt(unsigned int urxbd_cnt);
int iSetSPI_BD_ST_txbd_empty(unsigned int utxbd_empty);
int iSetSPI_BD_ST_txbd_full(unsigned int utxbd_full);
int iSetSPI_BD_ST_txbd_cnt(unsigned int utxbd_cnt);
int iSetSPI_ERR_ST_rxbd_pool_rdempty(unsigned int urxbd_pool_rdempty);
int iSetSPI_ERR_ST_rxbd_pool_wrfull(unsigned int urxbd_pool_wrfull);
int iSetSPI_ERR_ST_txbd_pool_rdempty(unsigned int utxbd_pool_rdempty);
int iSetSPI_ERR_ST_txbd_pool_wrfull(unsigned int utxbd_pool_wrfull);
int iSetSPI_ERR_ST_rxbd_rdempty(unsigned int urxbd_rdempty);
int iSetSPI_ERR_ST_rxbd_wrfull(unsigned int urxbd_wrfull);
int iSetSPI_ERR_ST_txbd_rdempty(unsigned int utxbd_rdempty);
int iSetSPI_ERR_ST_txbd_wrfull(unsigned int utxbd_wrfull);
int iSetSPI_ERR_ST_axi_rd_err(unsigned int uaxi_rd_err);
int iSetSPI_ERR_ST_axi_wr_err(unsigned int uaxi_wr_err);
int iSetSPI_ERR_ST_txfifo_unfl(unsigned int utxfifo_unfl);
int iSetSPI_ERR_ST_rxfifo_ovfl(unsigned int urxfifo_ovfl);
int iSetSPI_ERR_ST_rxdat_len_ovfl(unsigned int urxdat_len_ovfl);

/* Define the union csr_ring2axi_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 linkup_filt_neg_int_status : 8;  /* [7:0] */
        u32 linkup_filt_pos_int_status : 8;  /* [15:8] */
        u32 msgbuf_int_status : 1;           /* [16] */
        u32 msgbuf_afull_int_status : 1;     /* [17] */
        u32 msgbuf_timeout_int_status : 1;   /* [18] */
        u32 api_e0_err_int_status : 1;       /* [19] */
        u32 api_e1_err_int_status : 1;       /* [20] */
        u32 short_pkt_int_status : 1;        /* [21] */
        u32 long_pkt_int_status : 1;         /* [22] */
        u32 loss_sop_eop_int_status : 1;     /* [23] */
        u32 loss_sop_int_status : 1;         /* [24] */
        u32 loss_eop_int_status : 1;         /* [25] */
        u32 op_id_err_int_status : 1;        /* [26] */
        u32 load_mem_illegal_int_status : 1; /* [27] */
        u32 axi_rerr_int_status : 1;         /* [28] */
        u32 axi_berr_int_status : 1;         /* [29] */
        u32 rsv_0 : 2;                       /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_int_status_u;

/* Define the union csr_ring2axi_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 linkup_filt_neg_int_en : 8;  /* [7:0] */
        u32 linkup_filt_pos_int_en : 8;  /* [15:8] */
        u32 msgbuf_int_en : 1;           /* [16] */
        u32 msgbuf_afull_int_en : 1;     /* [17] */
        u32 msgbuf_timeout_int_en : 1;   /* [18] */
        u32 api_e0_err_int_en : 1;       /* [19] */
        u32 api_e1_err_int_en : 1;       /* [20] */
        u32 short_pkt_int_en : 1;        /* [21] */
        u32 long_pkt_int_en : 1;         /* [22] */
        u32 loss_sop_eop_int_en : 1;     /* [23] */
        u32 loss_sop_int_en : 1;         /* [24] */
        u32 loss_eop_int_en : 1;         /* [25] */
        u32 op_id_err_int_en : 1;        /* [26] */
        u32 load_mem_illegal_int_en : 1; /* [27] */
        u32 axi_rerr_int_en : 1;         /* [28] */
        u32 axi_berr_int_en : 1;         /* [29] */
        u32 rsv_1 : 2;                   /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_int_en_u;

/* Define the union csr_ring2axi_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 linkup_filt_neg_int_set : 8;  /* [7:0] */
        u32 linkup_filt_pos_int_set : 8;  /* [15:8] */
        u32 msgbuf_int_set : 1;           /* [16] */
        u32 msgbuf_afull_int_set : 1;     /* [17] */
        u32 msgbuf_timeout_int_set : 1;   /* [18] */
        u32 api_e0_err_int_set : 1;       /* [19] */
        u32 api_e1_err_int_set : 1;       /* [20] */
        u32 short_pkt_int_set : 1;        /* [21] */
        u32 long_pkt_int_set : 1;         /* [22] */
        u32 loss_sop_eop_int_set : 1;     /* [23] */
        u32 loss_sop_int_set : 1;         /* [24] */
        u32 loss_eop_int_set : 1;         /* [25] */
        u32 op_id_err_int_set : 1;        /* [26] */
        u32 load_mem_illegal_int_set : 1; /* [27] */
        u32 axi_rerr_int_set : 1;         /* [28] */
        u32 axi_berr_int_set : 1;         /* [29] */
        u32 rsv_2 : 2;                    /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_int_set_u;

/* Define the union csr_ring2axi_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 linkup_filt_neg_int_raw_status : 8;  /* [7:0] */
        u32 linkup_filt_pos_int_raw_status : 8;  /* [15:8] */
        u32 msgbuf_int_raw_status : 1;           /* [16] */
        u32 msgbuf_afull_int_raw_status : 1;     /* [17] */
        u32 msgbuf_timeout_int_raw_status : 1;   /* [18] */
        u32 api_e0_err_int_raw_status : 1;       /* [19] */
        u32 api_e1_err_int_raw_status : 1;       /* [20] */
        u32 short_pkt_int_raw_status : 1;        /* [21] */
        u32 long_pkt_int_raw_status : 1;         /* [22] */
        u32 loss_sop_eop_int_raw_status : 1;     /* [23] */
        u32 loss_sop_int_raw_status : 1;         /* [24] */
        u32 loss_eop_int_raw_status : 1;         /* [25] */
        u32 op_id_err_int_raw_status : 1;        /* [26] */
        u32 load_mem_illegal_int_raw_status : 1; /* [27] */
        u32 axi_rerr_int_raw_status : 1;         /* [28] */
        u32 axi_berr_int_raw_status : 1;         /* [29] */
        u32 rsv_3 : 2;                           /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_int_raw_status_u;

/* Define the union csr_ring2axi_cfg_msgbuf_mode_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_len : 21;           /* [20:0] */
        u32 rsv_4 : 7;                 /* [27:21] */
        u32 ovfl_mode : 1;             /* [28] */
        u32 msgbuf_int_rpt_now_en : 1; /* [29] */
        u32 rsv_5 : 2;                 /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_msgbuf_mode_u;

/* Define the union csr_ring2axi_cfg_msgbuf_ba_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_ba : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_msgbuf_ba_u;

/* Define the union csr_ring2axi_cfg_msgbuf_ci_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_ci : 21;     /* [20:0] */
        u32 msgbuf_ci_sign : 1; /* [21] */
        u32 rsv_6 : 10;         /* [31:22] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_msgbuf_ci_u;

/* Define the union csr_ring2axi_cfg_msgbuf_afull_th_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_afull_th : 21; /* [20:0] */
        u32 rsv_7 : 11;           /* [31:21] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_msgbuf_afull_th_u;

/* Define the union csr_ring2axi_cfg_msgbuf_afull_clr_th_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_afull_clr_th : 21; /* [20:0] */
        u32 rsv_8 : 11;               /* [31:21] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_msgbuf_afull_clr_th_u;

/* Define the union csr_ring2axi_cfg_msgbuf_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_time_out_en : 1;       /* [0] */
        u32 rsv_9 : 3;                    /* [3:1] */
        u32 msgbuf_time_out_max_cnt : 28; /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_msgbuf_timeout_u;

/* Define the union csr_ring2axi_cfg_msgbuf_timeout_clr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_time_out_cnt_clr : 1; /* [0] */
        u32 rsv_10 : 31;                 /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_msgbuf_timeout_clr_u;

/* Define the union csr_ring2axi_cfg_mem_api_endian_sel_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 store_mem_endian_sel : 1; /* [0] */
        u32 rsv_11 : 3;               /* [3:1] */
        u32 load_mem_endian_sel : 1;  /* [4] */
        u32 rsv_12 : 27;              /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_mem_api_endian_sel_u;

/* Define the union csr_ring2axi_cfg_api_max_index_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 api_max_index : 14; /* [13:0] */
        u32 rsv_13 : 18;        /* [31:14] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_api_max_index_u;

/* Define the union csr_ring2axi_cfg_bw_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_acc_max : 2; /* [1:0] */
        u32 rsv_14 : 2;         /* [3:2] */
        u32 axi_wr_acc_max : 2; /* [5:4] */
        u32 rsv_15 : 26;        /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_bw_u;

/* Define the union csr_ring2axi_cfg_api_flit_cnt_init_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_api_flit_cnt_init : 1; /* [0] */
        u32 rsv_16 : 3;               /* [3:1] */
        u32 tx_api_flit_cnt_init : 1; /* [4] */
        u32 rsv_17 : 27;              /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_api_flit_cnt_init_u;

/* Define the union csr_ring2axi_cfg_rx_disc_flit_cnt_clr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_disc_flit_cnt_clr : 1; /* [0] */
        u32 rsv_18 : 31;              /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_rx_disc_flit_cnt_clr_u;

/* Define the union csr_ring2axi_cfg_rx_dealed_flit_cnt_clr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_dealed_flit_cnt_clr : 1; /* [0] */
        u32 rsv_19 : 31;                /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_cfg_rx_dealed_flit_cnt_clr_u;

/* Define the union csr_ring2axi_fifo_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 asyn_ififo_afull_th : 3; /* [2:0] */
        u32 rsv_20 : 1;              /* [3] */
        u32 asyn_efifo_afull_th : 3; /* [6:4] */
        u32 rsv_21 : 25;             /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_fifo_cfg_u;

/* Define the union csr_ring2axi_msgbuf_pi_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_pi : 21;     /* [20:0] */
        u32 msgbuf_pi_sign : 1; /* [21] */
        u32 rsv_22 : 10;        /* [31:22] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_msgbuf_pi_u;

/* Define the union csr_ring2axi_msgbuf_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_cnt : 22;  /* [21:0] */
        u32 rsv_23 : 2;       /* [23:22] */
        u32 msgbuf_empty : 1; /* [24] */
        u32 rsv_24 : 3;       /* [27:25] */
        u32 msgbuf_full : 1;  /* [28] */
        u32 msgbuf_afull : 1; /* [29] */
        u32 rsv_25 : 2;       /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_msgbuf_stat_u;

/* Define the union csr_ring2axi_msgbuf_of_uf_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 msgbuf_of : 1; /* [0] */
        u32 rsv_26 : 3;    /* [3:1] */
        u32 msgbuf_uf : 1; /* [4] */
        u32 rsv_27 : 27;   /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_msgbuf_of_uf_u;

/* Define the union csr_ring2axi_inner_buf_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 inner_buf_cnt : 22;  /* [21:0] */
        u32 rsv_28 : 2;          /* [23:22] */
        u32 inner_buf_empty : 1; /* [24] */
        u32 rsv_29 : 3;          /* [27:25] */
        u32 inner_buf_full : 1;  /* [28] */
        u32 rsv_30 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_inner_buf_stat_u;

/* Define the union csr_ring2axi_inner_buf_of_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 inner_buf_of : 1; /* [0] */
        u32 rsv_31 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_inner_buf_of_u;

/* Define the union csr_ring2axi_rx_api_flit_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_api_flit_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_rx_api_flit_cnt_u;

/* Define the union csr_ring2axi_tx_api_flit_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_api_flit_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_tx_api_flit_cnt_u;

/* Define the union csr_ring2axi_axi_rd_latency_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_latency_cnt : 16; /* [15:0] */
        u32 rsv_32 : 16;             /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_rd_latency_u;

/* Define the union csr_ring2axi_axi_wr_latency_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_latency_cnt : 16; /* [15:0] */
        u32 rsv_33 : 16;             /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_wr_latency_u;

/* Define the union csr_ring2axi_axi_rd_latency_min_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_latency_min_cnt : 16; /* [15:0] */
        u32 rsv_34 : 16;                 /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_rd_latency_min_cnt_u;

/* Define the union csr_ring2axi_axi_wr_latency_min_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_latency_min_cnt : 16; /* [15:0] */
        u32 rsv_35 : 16;                 /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_wr_latency_min_cnt_u;

/* Define the union csr_ring2axi_axi_rd_latency_max_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_latency_max_cnt : 16; /* [15:0] */
        u32 rsv_36 : 16;                 /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_rd_latency_max_cnt_u;

/* Define the union csr_ring2axi_axi_wr_latency_max_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_latency_max_cnt : 16; /* [15:0] */
        u32 rsv_37 : 16;                 /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_wr_latency_max_cnt_u;

/* Define the union csr_ring2axi_axi_rd_otd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_otd_cnt : 3; /* [2:0] */
        u32 rsv_38 : 29;        /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_rd_otd_cnt_u;

/* Define the union csr_ring2axi_axi_wr_otd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_otd_cnt : 3; /* [2:0] */
        u32 rsv_39 : 29;        /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_wr_otd_cnt_u;

/* Define the union csr_ring2axi_axi_rd_otd_max_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_otd_max_cnt : 3; /* [2:0] */
        u32 rsv_40 : 29;            /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_rd_otd_max_cnt_u;

/* Define the union csr_ring2axi_axi_wr_otd_max_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_otd_max_cnt : 3; /* [2:0] */
        u32 rsv_41 : 29;            /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_axi_wr_otd_max_cnt_u;

/* Define the union csr_ring2axi_fsm_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rch_cur_st : 2;   /* [1:0] */
        u32 rsv_42 : 2;       /* [3:2] */
        u32 r_rsp_cur_st : 2; /* [5:4] */
        u32 rsv_43 : 2;       /* [7:6] */
        u32 wch_cur_st : 3;   /* [10:8] */
        u32 rsv_44 : 1;       /* [11] */
        u32 w_rsp_cur_st : 2; /* [13:12] */
        u32 rsv_45 : 18;      /* [31:14] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_fsm_stat_u;

/* Define the union csr_ring2axi_fifo_err_flag_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 store_legal_efifo_of : 1;       /* [0] */
        u32 load_legal_efifo_of : 1;        /* [1] */
        u32 load_addr_fifo_of : 1;          /* [2] */
        u32 load_cmd_fifo_of : 1;           /* [3] */
        u32 store_csr_addr_fifo_of : 1;     /* [4] */
        u32 store_mem_cmd_fifo_of : 1;      /* [5] */
        u32 store_csr_cmd_fifo_of : 1;      /* [6] */
        u32 store_csr_mem_seq_fifo0_of : 1; /* [7] */
        u32 store_csr_mem_seq_fifo1_of : 1; /* [8] */
        u32 sync_ififo_of_sync : 1;         /* [9] */
        u32 asyn_ififo_of_sync : 1;         /* [10] */
        u32 asyn_efifo_of : 1;              /* [11] */
        u32 rsv_46 : 4;                     /* [15:12] */
        u32 store_legal_efifo_uf : 1;       /* [16] */
        u32 load_legal_efifo_uf : 1;        /* [17] */
        u32 load_addr_fifo_uf : 1;          /* [18] */
        u32 load_cmd_fifo_uf : 1;           /* [19] */
        u32 store_csr_addr_fifo_uf : 1;     /* [20] */
        u32 store_mem_cmd_fifo_uf : 1;      /* [21] */
        u32 store_csr_cmd_fifo_uf : 1;      /* [22] */
        u32 store_csr_mem_seq_fifo0_uf : 1; /* [23] */
        u32 store_csr_mem_seq_fifo1_uf : 1; /* [24] */
        u32 rsv_47 : 7;                     /* [31:25] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_fifo_err_flag_u;

/* Define the union csr_ring2axi_store_legal_efifo_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 store_legal_efifo_cnt : 4;   /* [3:0] */
        u32 store_legal_efifo_empty : 1; /* [4] */
        u32 rsv_48 : 3;                  /* [7:5] */
        u32 store_legal_efifo_full : 1;  /* [8] */
        u32 rsv_49 : 23;                 /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_store_legal_efifo_stat_u;

/* Define the union csr_ring2axi_load_legal_efifo_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 load_legal_efifo_cnt : 5;   /* [4:0] */
        u32 rsv_50 : 3;                 /* [7:5] */
        u32 load_legal_efifo_empty : 1; /* [8] */
        u32 rsv_51 : 4;                 /* [12:9] */
        u32 load_legal_efifo_full : 1;  /* [13] */
        u32 rsv_52 : 18;                /* [31:14] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_load_legal_efifo_stat_u;

/* Define the union csr_ring2axi_load_addr_fifo_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 load_addr_fifo_cnt : 4;   /* [3:0] */
        u32 load_addr_fifo_empty : 1; /* [4] */
        u32 rsv_53 : 3;               /* [7:5] */
        u32 load_addr_fifo_full : 1;  /* [8] */
        u32 rsv_54 : 23;              /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_load_addr_fifo_stat_u;

/* Define the union csr_ring2axi_load_cmd_fifo_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 load_cmd_fifo_cnt : 4;   /* [3:0] */
        u32 load_cmd_fifo_empty : 1; /* [4] */
        u32 rsv_55 : 3;              /* [7:5] */
        u32 load_cmd_fifo_full : 1;  /* [8] */
        u32 rsv_56 : 23;             /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_load_cmd_fifo_stat_u;

/* Define the union csr_ring2axi_store_csr_addr_fifo_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 store_csr_addr_fifo_cnt : 4;   /* [3:0] */
        u32 store_csr_addr_fifo_empty : 1; /* [4] */
        u32 rsv_57 : 3;                    /* [7:5] */
        u32 store_csr_addr_fifo_full : 1;  /* [8] */
        u32 rsv_58 : 23;                   /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_store_csr_addr_fifo_stat_u;

/* Define the union csr_ring2axi_store_mem_cmd_fifo_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 store_mem_cmd_fifo_cnt : 4;   /* [3:0] */
        u32 store_mem_cmd_fifo_empty : 1; /* [4] */
        u32 rsv_59 : 3;                   /* [7:5] */
        u32 store_mem_cmd_fifo_full : 1;  /* [8] */
        u32 rsv_60 : 23;                  /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_store_mem_cmd_fifo_stat_u;

/* Define the union csr_ring2axi_store_csr_cmd_fifo_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 store_csr_cmd_fifo_cnt : 4;   /* [3:0] */
        u32 store_csr_cmd_fifo_empty : 1; /* [4] */
        u32 rsv_61 : 3;                   /* [7:5] */
        u32 store_csr_cmd_fifo_full : 1;  /* [8] */
        u32 rsv_62 : 23;                  /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_store_csr_cmd_fifo_stat_u;

/* Define the union csr_ring2axi_store_csr_mem_fifo0_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 store_csr_mem_seq_fifo0_cnt : 4;   /* [3:0] */
        u32 store_csr_mem_seq_fifo0_empty : 1; /* [4] */
        u32 rsv_63 : 3;                        /* [7:5] */
        u32 store_csr_mem_seq_fifo0_full : 1;  /* [8] */
        u32 rsv_64 : 23;                       /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_store_csr_mem_fifo0_stat_u;

/* Define the union csr_ring2axi_store_csr_mem_fifo1_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 store_csr_mem_seq_fifo1_cnt : 4;   /* [3:0] */
        u32 store_csr_mem_seq_fifo1_empty : 1; /* [4] */
        u32 rsv_65 : 3;                        /* [7:5] */
        u32 store_csr_mem_seq_fifo1_full : 1;  /* [8] */
        u32 rsv_66 : 23;                       /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_store_csr_mem_fifo1_stat_u;

/* Define the union csr_ring2axi_if_fifo_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sync_ififo_cnt_sync : 4; /* [3:0] */
        u32 rsv_67 : 4;              /* [7:4] */
        u32 asyn_ififo_rcnt : 4;     /* [11:8] */
        u32 rsv_68 : 4;              /* [15:12] */
        u32 asyn_efifo_wcnt : 4;     /* [19:16] */
        u32 rsv_69 : 12;             /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_if_fifo_cnt_u;

/* Define the union csr_ring2axi_ejection_crdt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 crdt_cnt_sync : 3; /* [2:0] */
        u32 rsv_70 : 29;       /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_ejection_crdt_cnt_u;

/* Define the union csr_ring2axi_illegal_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 api_illegal_index : 1; /* [0] */
        u32 rsv_71 : 31;           /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_illegal_stat_u;

/* Define the union csr_ring2axi_store_mem_api_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 store_mem_api_vld : 1;   /* [0] */
        u32 rsv_72 : 3;              /* [3:1] */
        u32 store_mem_flit_cnt : 3;  /* [6:4] */
        u32 rsv_73 : 1;              /* [7] */
        u32 store_mem_api_4flit : 1; /* [8] */
        u32 rsv_74 : 23;             /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_store_mem_api_stat_u;

/* Define the union csr_ring2axi_rx_disc_flit_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_disc_flit_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_rx_disc_flit_cnt_u;

/* Define the union csr_ring2axi_rx_dealed_flit_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_dealed_flit_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_rx_dealed_flit_cnt_u;

/* Define the union csr_ring2axi_up_filt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 up_flit_cfg_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_up_filt_cnt_u;

/* Define the union csr_ring2axi_dn_filt_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dn_flit_cfg_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_dn_filt_cnt_u;

/* Define the union csr_ring2axi_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ring2axi_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_version_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_ring2axi_int_status_u ring2axi_int_status;                                 /* 10 */
    volatile csr_ring2axi_int_en_u ring2axi_int_en;                                         /* 20 */
    volatile csr_ring2axi_int_set_u ring2axi_int_set;                                       /* 30 */
    volatile csr_ring2axi_int_raw_status_u ring2axi_int_raw_status;                         /* 40 */
    volatile csr_ring2axi_cfg_msgbuf_mode_u ring2axi_cfg_msgbuf_mode;                       /* A0 */
    volatile csr_ring2axi_cfg_msgbuf_ba_u ring2axi_cfg_msgbuf_ba;                           /* A4 */
    volatile csr_ring2axi_cfg_msgbuf_ci_u ring2axi_cfg_msgbuf_ci;                           /* A8 */
    volatile csr_ring2axi_cfg_msgbuf_afull_th_u ring2axi_cfg_msgbuf_afull_th;               /* AC */
    volatile csr_ring2axi_cfg_msgbuf_afull_clr_th_u ring2axi_cfg_msgbuf_afull_clr_th;       /* B0 */
    volatile csr_ring2axi_cfg_msgbuf_timeout_u ring2axi_cfg_msgbuf_timeout;                 /* B4 */
    volatile csr_ring2axi_cfg_msgbuf_timeout_clr_u ring2axi_cfg_msgbuf_timeout_clr;         /* B8 */
    volatile csr_ring2axi_cfg_mem_api_endian_sel_u ring2axi_cfg_mem_api_endian_sel;         /* BC */
    volatile csr_ring2axi_cfg_api_max_index_u ring2axi_cfg_api_max_index;                   /* C0 */
    volatile csr_ring2axi_cfg_bw_u ring2axi_cfg_bw;                                         /* C4 */
    volatile csr_ring2axi_cfg_api_flit_cnt_init_u ring2axi_cfg_api_flit_cnt_init;           /* C8 */
    volatile csr_ring2axi_cfg_rx_disc_flit_cnt_clr_u ring2axi_cfg_rx_disc_flit_cnt_clr;     /* CC */
    volatile csr_ring2axi_cfg_rx_dealed_flit_cnt_clr_u ring2axi_cfg_rx_dealed_flit_cnt_clr; /* D0 */
    volatile csr_ring2axi_fifo_cfg_u ring2axi_fifo_cfg;                                     /* D4 */
    volatile csr_ring2axi_msgbuf_pi_u ring2axi_msgbuf_pi;                                   /* 200 */
    volatile csr_ring2axi_msgbuf_stat_u ring2axi_msgbuf_stat;                               /* 204 */
    volatile csr_ring2axi_msgbuf_of_uf_u ring2axi_msgbuf_of_uf;                             /* 208 */
    volatile csr_ring2axi_inner_buf_stat_u ring2axi_inner_buf_stat;                         /* 20C */
    volatile csr_ring2axi_inner_buf_of_u ring2axi_inner_buf_of;                             /* 210 */
    volatile csr_ring2axi_rx_api_flit_cnt_u ring2axi_rx_api_flit_cnt;                       /* 214 */
    volatile csr_ring2axi_tx_api_flit_cnt_u ring2axi_tx_api_flit_cnt;                       /* 218 */
    volatile csr_ring2axi_axi_rd_latency_u ring2axi_axi_rd_latency;                         /* 21C */
    volatile csr_ring2axi_axi_wr_latency_u ring2axi_axi_wr_latency;                         /* 220 */
    volatile csr_ring2axi_axi_rd_latency_min_cnt_u ring2axi_axi_rd_latency_min_cnt;         /* 224 */
    volatile csr_ring2axi_axi_wr_latency_min_cnt_u ring2axi_axi_wr_latency_min_cnt;         /* 228 */
    volatile csr_ring2axi_axi_rd_latency_max_cnt_u ring2axi_axi_rd_latency_max_cnt;         /* 22C */
    volatile csr_ring2axi_axi_wr_latency_max_cnt_u ring2axi_axi_wr_latency_max_cnt;         /* 230 */
    volatile csr_ring2axi_axi_rd_otd_cnt_u ring2axi_axi_rd_otd_cnt;                         /* 234 */
    volatile csr_ring2axi_axi_wr_otd_cnt_u ring2axi_axi_wr_otd_cnt;                         /* 238 */
    volatile csr_ring2axi_axi_rd_otd_max_cnt_u ring2axi_axi_rd_otd_max_cnt;                 /* 23C */
    volatile csr_ring2axi_axi_wr_otd_max_cnt_u ring2axi_axi_wr_otd_max_cnt;                 /* 240 */
    volatile csr_ring2axi_fsm_stat_u ring2axi_fsm_stat;                                     /* 244 */
    volatile csr_ring2axi_fifo_err_flag_u ring2axi_fifo_err_flag;                           /* 248 */
    volatile csr_ring2axi_store_legal_efifo_stat_u ring2axi_store_legal_efifo_stat;         /* 24C */
    volatile csr_ring2axi_load_legal_efifo_stat_u ring2axi_load_legal_efifo_stat;           /* 250 */
    volatile csr_ring2axi_load_addr_fifo_stat_u ring2axi_load_addr_fifo_stat;               /* 254 */
    volatile csr_ring2axi_load_cmd_fifo_stat_u ring2axi_load_cmd_fifo_stat;                 /* 258 */
    volatile csr_ring2axi_store_csr_addr_fifo_stat_u ring2axi_store_csr_addr_fifo_stat;     /* 25C */
    volatile csr_ring2axi_store_mem_cmd_fifo_stat_u ring2axi_store_mem_cmd_fifo_stat;       /* 260 */
    volatile csr_ring2axi_store_csr_cmd_fifo_stat_u ring2axi_store_csr_cmd_fifo_stat;       /* 264 */
    volatile csr_ring2axi_store_csr_mem_fifo0_stat_u ring2axi_store_csr_mem_fifo0_stat;     /* 268 */
    volatile csr_ring2axi_store_csr_mem_fifo1_stat_u ring2axi_store_csr_mem_fifo1_stat;     /* 26C */
    volatile csr_ring2axi_if_fifo_cnt_u ring2axi_if_fifo_cnt;                               /* 270 */
    volatile csr_ring2axi_ejection_crdt_cnt_u ring2axi_ejection_crdt_cnt;                   /* 274 */
    volatile csr_ring2axi_illegal_stat_u ring2axi_illegal_stat;                             /* 278 */
    volatile csr_ring2axi_store_mem_api_stat_u ring2axi_store_mem_api_stat;                 /* 27C */
    volatile csr_ring2axi_rx_disc_flit_cnt_u ring2axi_rx_disc_flit_cnt;                     /* 400 */
    volatile csr_ring2axi_rx_dealed_flit_cnt_u ring2axi_rx_dealed_flit_cnt;                 /* 404 */
    volatile csr_ring2axi_up_filt_cnt_u ring2axi_up_filt_cnt;                               /* 410 */
    volatile csr_ring2axi_dn_filt_cnt_u ring2axi_dn_filt_cnt;                               /* 414 */
    volatile csr_ring2axi_version_u ring2axi_version;                                       /* 500 */
} S_ring2axi_csr_REGS_TYPE;

/* Declare the struct pointor of the module ring2axi_csr */
extern volatile S_ring2axi_csr_REGS_TYPE *gopring2axi_csrAllReg;

/* Declare the functions that set the member value */
int iSetRING2AXI_INT_STATUS_linkup_filt_neg_int_status(unsigned int ulinkup_filt_neg_int_status);
int iSetRING2AXI_INT_STATUS_linkup_filt_pos_int_status(unsigned int ulinkup_filt_pos_int_status);
int iSetRING2AXI_INT_STATUS_msgbuf_int_status(unsigned int umsgbuf_int_status);
int iSetRING2AXI_INT_STATUS_msgbuf_afull_int_status(unsigned int umsgbuf_afull_int_status);
int iSetRING2AXI_INT_STATUS_msgbuf_timeout_int_status(unsigned int umsgbuf_timeout_int_status);
int iSetRING2AXI_INT_STATUS_api_e0_err_int_status(unsigned int uapi_e0_err_int_status);
int iSetRING2AXI_INT_STATUS_api_e1_err_int_status(unsigned int uapi_e1_err_int_status);
int iSetRING2AXI_INT_STATUS_short_pkt_int_status(unsigned int ushort_pkt_int_status);
int iSetRING2AXI_INT_STATUS_long_pkt_int_status(unsigned int ulong_pkt_int_status);
int iSetRING2AXI_INT_STATUS_loss_sop_eop_int_status(unsigned int uloss_sop_eop_int_status);
int iSetRING2AXI_INT_STATUS_loss_sop_int_status(unsigned int uloss_sop_int_status);
int iSetRING2AXI_INT_STATUS_loss_eop_int_status(unsigned int uloss_eop_int_status);
int iSetRING2AXI_INT_STATUS_op_id_err_int_status(unsigned int uop_id_err_int_status);
int iSetRING2AXI_INT_STATUS_load_mem_illegal_int_status(unsigned int uload_mem_illegal_int_status);
int iSetRING2AXI_INT_STATUS_axi_rerr_int_status(unsigned int uaxi_rerr_int_status);
int iSetRING2AXI_INT_STATUS_axi_berr_int_status(unsigned int uaxi_berr_int_status);
int iSetRING2AXI_INT_EN_linkup_filt_neg_int_en(unsigned int ulinkup_filt_neg_int_en);
int iSetRING2AXI_INT_EN_linkup_filt_pos_int_en(unsigned int ulinkup_filt_pos_int_en);
int iSetRING2AXI_INT_EN_msgbuf_int_en(unsigned int umsgbuf_int_en);
int iSetRING2AXI_INT_EN_msgbuf_afull_int_en(unsigned int umsgbuf_afull_int_en);
int iSetRING2AXI_INT_EN_msgbuf_timeout_int_en(unsigned int umsgbuf_timeout_int_en);
int iSetRING2AXI_INT_EN_api_e0_err_int_en(unsigned int uapi_e0_err_int_en);
int iSetRING2AXI_INT_EN_api_e1_err_int_en(unsigned int uapi_e1_err_int_en);
int iSetRING2AXI_INT_EN_short_pkt_int_en(unsigned int ushort_pkt_int_en);
int iSetRING2AXI_INT_EN_long_pkt_int_en(unsigned int ulong_pkt_int_en);
int iSetRING2AXI_INT_EN_loss_sop_eop_int_en(unsigned int uloss_sop_eop_int_en);
int iSetRING2AXI_INT_EN_loss_sop_int_en(unsigned int uloss_sop_int_en);
int iSetRING2AXI_INT_EN_loss_eop_int_en(unsigned int uloss_eop_int_en);
int iSetRING2AXI_INT_EN_op_id_err_int_en(unsigned int uop_id_err_int_en);
int iSetRING2AXI_INT_EN_load_mem_illegal_int_en(unsigned int uload_mem_illegal_int_en);
int iSetRING2AXI_INT_EN_axi_rerr_int_en(unsigned int uaxi_rerr_int_en);
int iSetRING2AXI_INT_EN_axi_berr_int_en(unsigned int uaxi_berr_int_en);
int iSetRING2AXI_INT_SET_linkup_filt_neg_int_set(unsigned int ulinkup_filt_neg_int_set);
int iSetRING2AXI_INT_SET_linkup_filt_pos_int_set(unsigned int ulinkup_filt_pos_int_set);
int iSetRING2AXI_INT_SET_msgbuf_int_set(unsigned int umsgbuf_int_set);
int iSetRING2AXI_INT_SET_msgbuf_afull_int_set(unsigned int umsgbuf_afull_int_set);
int iSetRING2AXI_INT_SET_msgbuf_timeout_int_set(unsigned int umsgbuf_timeout_int_set);
int iSetRING2AXI_INT_SET_api_e0_err_int_set(unsigned int uapi_e0_err_int_set);
int iSetRING2AXI_INT_SET_api_e1_err_int_set(unsigned int uapi_e1_err_int_set);
int iSetRING2AXI_INT_SET_short_pkt_int_set(unsigned int ushort_pkt_int_set);
int iSetRING2AXI_INT_SET_long_pkt_int_set(unsigned int ulong_pkt_int_set);
int iSetRING2AXI_INT_SET_loss_sop_eop_int_set(unsigned int uloss_sop_eop_int_set);
int iSetRING2AXI_INT_SET_loss_sop_int_set(unsigned int uloss_sop_int_set);
int iSetRING2AXI_INT_SET_loss_eop_int_set(unsigned int uloss_eop_int_set);
int iSetRING2AXI_INT_SET_op_id_err_int_set(unsigned int uop_id_err_int_set);
int iSetRING2AXI_INT_SET_load_mem_illegal_int_set(unsigned int uload_mem_illegal_int_set);
int iSetRING2AXI_INT_SET_axi_rerr_int_set(unsigned int uaxi_rerr_int_set);
int iSetRING2AXI_INT_SET_axi_berr_int_set(unsigned int uaxi_berr_int_set);
int iSetRING2AXI_INT_RAW_STATUS_linkup_filt_neg_int_raw_status(unsigned int ulinkup_filt_neg_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_linkup_filt_pos_int_raw_status(unsigned int ulinkup_filt_pos_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_msgbuf_int_raw_status(unsigned int umsgbuf_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_msgbuf_afull_int_raw_status(unsigned int umsgbuf_afull_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_msgbuf_timeout_int_raw_status(unsigned int umsgbuf_timeout_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_api_e0_err_int_raw_status(unsigned int uapi_e0_err_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_api_e1_err_int_raw_status(unsigned int uapi_e1_err_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_short_pkt_int_raw_status(unsigned int ushort_pkt_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_long_pkt_int_raw_status(unsigned int ulong_pkt_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_loss_sop_eop_int_raw_status(unsigned int uloss_sop_eop_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_loss_sop_int_raw_status(unsigned int uloss_sop_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_loss_eop_int_raw_status(unsigned int uloss_eop_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_op_id_err_int_raw_status(unsigned int uop_id_err_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_load_mem_illegal_int_raw_status(unsigned int uload_mem_illegal_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_axi_rerr_int_raw_status(unsigned int uaxi_rerr_int_raw_status);
int iSetRING2AXI_INT_RAW_STATUS_axi_berr_int_raw_status(unsigned int uaxi_berr_int_raw_status);
int iSetRING2AXI_CFG_MSGBUF_MODE_msgbuf_len(unsigned int umsgbuf_len);
int iSetRING2AXI_CFG_MSGBUF_MODE_ovfl_mode(unsigned int uovfl_mode);
int iSetRING2AXI_CFG_MSGBUF_MODE_msgbuf_int_rpt_now_en(unsigned int umsgbuf_int_rpt_now_en);
int iSetRING2AXI_CFG_MSGBUF_BA_msgbuf_ba(unsigned int umsgbuf_ba);
int iSetRING2AXI_CFG_MSGBUF_CI_msgbuf_ci(unsigned int umsgbuf_ci);
int iSetRING2AXI_CFG_MSGBUF_CI_msgbuf_ci_sign(unsigned int umsgbuf_ci_sign);
int iSetRING2AXI_CFG_MSGBUF_AFULL_TH_msgbuf_afull_th(unsigned int umsgbuf_afull_th);
int iSetRING2AXI_CFG_MSGBUF_AFULL_CLR_TH_msgbuf_afull_clr_th(unsigned int umsgbuf_afull_clr_th);
int iSetRING2AXI_CFG_MSGBUF_TIMEOUT_msgbuf_time_out_en(unsigned int umsgbuf_time_out_en);
int iSetRING2AXI_CFG_MSGBUF_TIMEOUT_msgbuf_time_out_max_cnt(unsigned int umsgbuf_time_out_max_cnt);
int iSetRING2AXI_CFG_MSGBUF_TIMEOUT_CLR_msgbuf_time_out_cnt_clr(unsigned int umsgbuf_time_out_cnt_clr);
int iSetRING2AXI_CFG_MEM_API_ENDIAN_SEL_store_mem_endian_sel(unsigned int ustore_mem_endian_sel);
int iSetRING2AXI_CFG_MEM_API_ENDIAN_SEL_load_mem_endian_sel(unsigned int uload_mem_endian_sel);
int iSetRING2AXI_CFG_API_MAX_INDEX_api_max_index(unsigned int uapi_max_index);
int iSetRING2AXI_CFG_BW_axi_rd_acc_max(unsigned int uaxi_rd_acc_max);
int iSetRING2AXI_CFG_BW_axi_wr_acc_max(unsigned int uaxi_wr_acc_max);
int iSetRING2AXI_CFG_API_FLIT_CNT_INIT_rx_api_flit_cnt_init(unsigned int urx_api_flit_cnt_init);
int iSetRING2AXI_CFG_API_FLIT_CNT_INIT_tx_api_flit_cnt_init(unsigned int utx_api_flit_cnt_init);
int iSetRING2AXI_CFG_RX_DISC_FLIT_CNT_CLR_rx_disc_flit_cnt_clr(unsigned int urx_disc_flit_cnt_clr);
int iSetRING2AXI_CFG_RX_DEALED_FLIT_CNT_CLR_rx_dealed_flit_cnt_clr(unsigned int urx_dealed_flit_cnt_clr);
int iSetRING2AXI_FIFO_CFG_asyn_ififo_afull_th(unsigned int uasyn_ififo_afull_th);
int iSetRING2AXI_FIFO_CFG_asyn_efifo_afull_th(unsigned int uasyn_efifo_afull_th);
int iSetRING2AXI_MSGBUF_PI_msgbuf_pi(unsigned int umsgbuf_pi);
int iSetRING2AXI_MSGBUF_PI_msgbuf_pi_sign(unsigned int umsgbuf_pi_sign);
int iSetRING2AXI_MSGBUF_STAT_msgbuf_cnt(unsigned int umsgbuf_cnt);
int iSetRING2AXI_MSGBUF_STAT_msgbuf_empty(unsigned int umsgbuf_empty);
int iSetRING2AXI_MSGBUF_STAT_msgbuf_full(unsigned int umsgbuf_full);
int iSetRING2AXI_MSGBUF_STAT_msgbuf_afull(unsigned int umsgbuf_afull);
int iSetRING2AXI_MSGBUF_OF_UF_msgbuf_of(unsigned int umsgbuf_of);
int iSetRING2AXI_MSGBUF_OF_UF_msgbuf_uf(unsigned int umsgbuf_uf);
int iSetRING2AXI_INNER_BUF_STAT_inner_buf_cnt(unsigned int uinner_buf_cnt);
int iSetRING2AXI_INNER_BUF_STAT_inner_buf_empty(unsigned int uinner_buf_empty);
int iSetRING2AXI_INNER_BUF_STAT_inner_buf_full(unsigned int uinner_buf_full);
int iSetRING2AXI_INNER_BUF_OF_inner_buf_of(unsigned int uinner_buf_of);
int iSetRING2AXI_RX_API_FLIT_CNT_rx_api_flit_cnt(unsigned int urx_api_flit_cnt);
int iSetRING2AXI_TX_API_FLIT_CNT_tx_api_flit_cnt(unsigned int utx_api_flit_cnt);
int iSetRING2AXI_AXI_RD_LATENCY_axi_rd_latency_cnt(unsigned int uaxi_rd_latency_cnt);
int iSetRING2AXI_AXI_WR_LATENCY_axi_wr_latency_cnt(unsigned int uaxi_wr_latency_cnt);
int iSetRING2AXI_AXI_RD_LATENCY_MIN_CNT_axi_rd_latency_min_cnt(unsigned int uaxi_rd_latency_min_cnt);
int iSetRING2AXI_AXI_WR_LATENCY_MIN_CNT_axi_wr_latency_min_cnt(unsigned int uaxi_wr_latency_min_cnt);
int iSetRING2AXI_AXI_RD_LATENCY_MAX_CNT_axi_rd_latency_max_cnt(unsigned int uaxi_rd_latency_max_cnt);
int iSetRING2AXI_AXI_WR_LATENCY_MAX_CNT_axi_wr_latency_max_cnt(unsigned int uaxi_wr_latency_max_cnt);
int iSetRING2AXI_AXI_RD_OTD_CNT_axi_rd_otd_cnt(unsigned int uaxi_rd_otd_cnt);
int iSetRING2AXI_AXI_WR_OTD_CNT_axi_wr_otd_cnt(unsigned int uaxi_wr_otd_cnt);
int iSetRING2AXI_AXI_RD_OTD_MAX_CNT_axi_rd_otd_max_cnt(unsigned int uaxi_rd_otd_max_cnt);
int iSetRING2AXI_AXI_WR_OTD_MAX_CNT_axi_wr_otd_max_cnt(unsigned int uaxi_wr_otd_max_cnt);
int iSetRING2AXI_FSM_STAT_rch_cur_st(unsigned int urch_cur_st);
int iSetRING2AXI_FSM_STAT_r_rsp_cur_st(unsigned int ur_rsp_cur_st);
int iSetRING2AXI_FSM_STAT_wch_cur_st(unsigned int uwch_cur_st);
int iSetRING2AXI_FSM_STAT_w_rsp_cur_st(unsigned int uw_rsp_cur_st);
int iSetRING2AXI_FIFO_ERR_FLAG_store_legal_efifo_of(unsigned int ustore_legal_efifo_of);
int iSetRING2AXI_FIFO_ERR_FLAG_load_legal_efifo_of(unsigned int uload_legal_efifo_of);
int iSetRING2AXI_FIFO_ERR_FLAG_load_addr_fifo_of(unsigned int uload_addr_fifo_of);
int iSetRING2AXI_FIFO_ERR_FLAG_load_cmd_fifo_of(unsigned int uload_cmd_fifo_of);
int iSetRING2AXI_FIFO_ERR_FLAG_store_csr_addr_fifo_of(unsigned int ustore_csr_addr_fifo_of);
int iSetRING2AXI_FIFO_ERR_FLAG_store_mem_cmd_fifo_of(unsigned int ustore_mem_cmd_fifo_of);
int iSetRING2AXI_FIFO_ERR_FLAG_store_csr_cmd_fifo_of(unsigned int ustore_csr_cmd_fifo_of);
int iSetRING2AXI_FIFO_ERR_FLAG_store_csr_mem_seq_fifo0_of(unsigned int ustore_csr_mem_seq_fifo0_of);
int iSetRING2AXI_FIFO_ERR_FLAG_store_csr_mem_seq_fifo1_of(unsigned int ustore_csr_mem_seq_fifo1_of);
int iSetRING2AXI_FIFO_ERR_FLAG_sync_ififo_of_sync(unsigned int usync_ififo_of_sync);
int iSetRING2AXI_FIFO_ERR_FLAG_asyn_ififo_of_sync(unsigned int uasyn_ififo_of_sync);
int iSetRING2AXI_FIFO_ERR_FLAG_asyn_efifo_of(unsigned int uasyn_efifo_of);
int iSetRING2AXI_FIFO_ERR_FLAG_store_legal_efifo_uf(unsigned int ustore_legal_efifo_uf);
int iSetRING2AXI_FIFO_ERR_FLAG_load_legal_efifo_uf(unsigned int uload_legal_efifo_uf);
int iSetRING2AXI_FIFO_ERR_FLAG_load_addr_fifo_uf(unsigned int uload_addr_fifo_uf);
int iSetRING2AXI_FIFO_ERR_FLAG_load_cmd_fifo_uf(unsigned int uload_cmd_fifo_uf);
int iSetRING2AXI_FIFO_ERR_FLAG_store_csr_addr_fifo_uf(unsigned int ustore_csr_addr_fifo_uf);
int iSetRING2AXI_FIFO_ERR_FLAG_store_mem_cmd_fifo_uf(unsigned int ustore_mem_cmd_fifo_uf);
int iSetRING2AXI_FIFO_ERR_FLAG_store_csr_cmd_fifo_uf(unsigned int ustore_csr_cmd_fifo_uf);
int iSetRING2AXI_FIFO_ERR_FLAG_store_csr_mem_seq_fifo0_uf(unsigned int ustore_csr_mem_seq_fifo0_uf);
int iSetRING2AXI_FIFO_ERR_FLAG_store_csr_mem_seq_fifo1_uf(unsigned int ustore_csr_mem_seq_fifo1_uf);
int iSetRING2AXI_STORE_LEGAL_EFIFO_STAT_store_legal_efifo_cnt(unsigned int ustore_legal_efifo_cnt);
int iSetRING2AXI_STORE_LEGAL_EFIFO_STAT_store_legal_efifo_empty(unsigned int ustore_legal_efifo_empty);
int iSetRING2AXI_STORE_LEGAL_EFIFO_STAT_store_legal_efifo_full(unsigned int ustore_legal_efifo_full);
int iSetRING2AXI_LOAD_LEGAL_EFIFO_STAT_load_legal_efifo_cnt(unsigned int uload_legal_efifo_cnt);
int iSetRING2AXI_LOAD_LEGAL_EFIFO_STAT_load_legal_efifo_empty(unsigned int uload_legal_efifo_empty);
int iSetRING2AXI_LOAD_LEGAL_EFIFO_STAT_load_legal_efifo_full(unsigned int uload_legal_efifo_full);
int iSetRING2AXI_LOAD_ADDR_FIFO_STAT_load_addr_fifo_cnt(unsigned int uload_addr_fifo_cnt);
int iSetRING2AXI_LOAD_ADDR_FIFO_STAT_load_addr_fifo_empty(unsigned int uload_addr_fifo_empty);
int iSetRING2AXI_LOAD_ADDR_FIFO_STAT_load_addr_fifo_full(unsigned int uload_addr_fifo_full);
int iSetRING2AXI_LOAD_CMD_FIFO_STAT_load_cmd_fifo_cnt(unsigned int uload_cmd_fifo_cnt);
int iSetRING2AXI_LOAD_CMD_FIFO_STAT_load_cmd_fifo_empty(unsigned int uload_cmd_fifo_empty);
int iSetRING2AXI_LOAD_CMD_FIFO_STAT_load_cmd_fifo_full(unsigned int uload_cmd_fifo_full);
int iSetRING2AXI_STORE_CSR_ADDR_FIFO_STAT_store_csr_addr_fifo_cnt(unsigned int ustore_csr_addr_fifo_cnt);
int iSetRING2AXI_STORE_CSR_ADDR_FIFO_STAT_store_csr_addr_fifo_empty(unsigned int ustore_csr_addr_fifo_empty);
int iSetRING2AXI_STORE_CSR_ADDR_FIFO_STAT_store_csr_addr_fifo_full(unsigned int ustore_csr_addr_fifo_full);
int iSetRING2AXI_STORE_MEM_CMD_FIFO_STAT_store_mem_cmd_fifo_cnt(unsigned int ustore_mem_cmd_fifo_cnt);
int iSetRING2AXI_STORE_MEM_CMD_FIFO_STAT_store_mem_cmd_fifo_empty(unsigned int ustore_mem_cmd_fifo_empty);
int iSetRING2AXI_STORE_MEM_CMD_FIFO_STAT_store_mem_cmd_fifo_full(unsigned int ustore_mem_cmd_fifo_full);
int iSetRING2AXI_STORE_CSR_CMD_FIFO_STAT_store_csr_cmd_fifo_cnt(unsigned int ustore_csr_cmd_fifo_cnt);
int iSetRING2AXI_STORE_CSR_CMD_FIFO_STAT_store_csr_cmd_fifo_empty(unsigned int ustore_csr_cmd_fifo_empty);
int iSetRING2AXI_STORE_CSR_CMD_FIFO_STAT_store_csr_cmd_fifo_full(unsigned int ustore_csr_cmd_fifo_full);
int iSetRING2AXI_STORE_CSR_MEM_FIFO0_STAT_store_csr_mem_seq_fifo0_cnt(unsigned int ustore_csr_mem_seq_fifo0_cnt);
int iSetRING2AXI_STORE_CSR_MEM_FIFO0_STAT_store_csr_mem_seq_fifo0_empty(unsigned int ustore_csr_mem_seq_fifo0_empty);
int iSetRING2AXI_STORE_CSR_MEM_FIFO0_STAT_store_csr_mem_seq_fifo0_full(unsigned int ustore_csr_mem_seq_fifo0_full);
int iSetRING2AXI_STORE_CSR_MEM_FIFO1_STAT_store_csr_mem_seq_fifo1_cnt(unsigned int ustore_csr_mem_seq_fifo1_cnt);
int iSetRING2AXI_STORE_CSR_MEM_FIFO1_STAT_store_csr_mem_seq_fifo1_empty(unsigned int ustore_csr_mem_seq_fifo1_empty);
int iSetRING2AXI_STORE_CSR_MEM_FIFO1_STAT_store_csr_mem_seq_fifo1_full(unsigned int ustore_csr_mem_seq_fifo1_full);
int iSetRING2AXI_IF_FIFO_CNT_sync_ififo_cnt_sync(unsigned int usync_ififo_cnt_sync);
int iSetRING2AXI_IF_FIFO_CNT_asyn_ififo_rcnt(unsigned int uasyn_ififo_rcnt);
int iSetRING2AXI_IF_FIFO_CNT_asyn_efifo_wcnt(unsigned int uasyn_efifo_wcnt);
int iSetRING2AXI_EJECTION_CRDT_CNT_crdt_cnt_sync(unsigned int ucrdt_cnt_sync);
int iSetRING2AXI_ILLEGAL_STAT_api_illegal_index(unsigned int uapi_illegal_index);
int iSetRING2AXI_STORE_MEM_API_STAT_store_mem_api_vld(unsigned int ustore_mem_api_vld);
int iSetRING2AXI_STORE_MEM_API_STAT_store_mem_flit_cnt(unsigned int ustore_mem_flit_cnt);
int iSetRING2AXI_STORE_MEM_API_STAT_store_mem_api_4flit(unsigned int ustore_mem_api_4flit);
int iSetRING2AXI_RX_DISC_FLIT_CNT_rx_disc_flit_cnt(unsigned int urx_disc_flit_cnt);
int iSetRING2AXI_RX_DEALED_FLIT_CNT_rx_dealed_flit_cnt(unsigned int urx_dealed_flit_cnt);
int iSetRING2AXI_UP_FILT_CNT_up_flit_cfg_cnt(unsigned int uup_flit_cfg_cnt);
int iSetRING2AXI_DN_FILT_CNT_dn_flit_cfg_cnt(unsigned int udn_flit_cfg_cnt);
int iSetRING2AXI_VERSION_ring2axi_version(unsigned int uring2axi_version);

/* Define the union csr_int_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_stat : 8; /* [7:0] */
        u32 rsv_0 : 24;   /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_stat_u;

/* Define the union csr_int_tc1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_tc1 : 8; /* [7:0] */
        u32 rsv_1 : 24;  /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_tc1_u;

/* Define the union csr_int_tc2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_tc2 : 8; /* [7:0] */
        u32 rsv_2 : 24;  /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_tc2_u;

/* Define the union csr_int_err1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_err1 : 8; /* [7:0] */
        u32 rsv_3 : 24;   /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_err1_u;

/* Define the union csr_int_err2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_err2 : 8; /* [7:0] */
        u32 rsv_4 : 24;   /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_err2_u;

/* Define the union csr_int_err3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_err3 : 8; /* [7:0] */
        u32 rsv_5 : 24;   /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_err3_u;

/* Define the union csr_int_tc1_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_tc1_mask : 8; /* [7:0] */
        u32 rsv_6 : 24;       /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_tc1_mask_u;

/* Define the union csr_int_tc2_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_tc2_mask : 8; /* [7:0] */
        u32 rsv_7 : 24;       /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_tc2_mask_u;

/* Define the union csr_int_err1_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_err1_mask : 8; /* [7:0] */
        u32 rsv_8 : 24;        /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_err1_mask_u;

/* Define the union csr_int_err2_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_err2_mask : 8; /* [7:0] */
        u32 rsv_9 : 24;        /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_err2_mask_u;

/* Define the union csr_int_err3_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_err3_mask : 8; /* [7:0] */
        u32 rsv_10 : 24;       /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_err3_mask_u;

/* Define the union csr_int_tc1_raw_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_tc1_raw : 8; /* [7:0] */
        u32 rsv_11 : 24;     /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_tc1_raw_u;

/* Define the union csr_int_tc2_raw_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_tc2_raw : 8; /* [7:0] */
        u32 rsv_12 : 24;     /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_tc2_raw_u;

/* Define the union csr_int_err1_raw_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_err1_raw : 8; /* [7:0] */
        u32 rsv_13 : 24;      /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_err1_raw_u;

/* Define the union csr_int_err2_raw_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_err2_raw : 8; /* [7:0] */
        u32 rsv_14 : 24;      /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_err2_raw_u;

/* Define the union csr_int_err3_raw_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_err3_raw : 8; /* [7:0] */
        u32 rsv_15 : 24;      /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_int_err3_raw_u;

/* Define the union csr_sreq_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sreq : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sreq_u;

/* Define the union csr_lsreq_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lsreq : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lsreq_u;

/* Define the union csr_breq_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 breq : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_breq_u;

/* Define the union csr_lbreq_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lbreq : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lbreq_u;

/* Define the union csr_freq_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 freq : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_freq_u;

/* Define the union csr_lfreq_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lfreq : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lfreq_u;

/* Define the union csr_ch_pri_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ch0_pri : 2; /* [1:0] */
        u32 ch1_pri : 2; /* [3:2] */
        u32 ch2_pri : 2; /* [5:4] */
        u32 ch3_pri : 2; /* [7:6] */
        u32 ch4_pri : 2; /* [9:8] */
        u32 ch5_pri : 2; /* [11:10] */
        u32 ch6_pri : 2; /* [13:12] */
        u32 ch7_pri : 2; /* [15:14] */
        u32 rsv_16 : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ch_pri_u;

/* Define the union csr_ch_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ch_stat : 8; /* [7:0] */
        u32 rsv_17 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ch_stat_u;

/* Define the union csr_dma_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 halt_ack : 1;  /* [0] */
        u32 halt_req : 1;  /* [1] */
        u32 rsv_18 : 2;    /* [3:2] */
        u32 conf_out4 : 1; /* [4] */
        u32 rsv_19 : 27;   /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_dma_ctrl_u;

/* Define the union csr_cx_curr_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 curr_c_count : 16; /* [15:0] */
        u32 rsv_20 : 16;       /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_curr_cnt1_u;

/* Define the union csr_cx_curr_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 curr_a_count : 16; /* [15:0] */
        u32 curr_b_count : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_curr_cnt0_u;

/* Define the union csr_cx_curr_src_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 curr_src_addr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_curr_src_addr_u;

/* Define the union csr_cx_curr_des_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 curr_des_addr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_curr_des_addr_u;

/* Define the union csr_cx_lli_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 chain_en : 2; /* [1:0] */
        u32 rsv_21 : 3;   /* [4:2] */
        u32 lli : 27;     /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_lli_u;

/* Define the union csr_cx_bindx_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 des_bindx : 15; /* [14:0] */
        u32 des_bsign : 1;  /* [15] */
        u32 src_bindx : 15; /* [30:16] */
        u32 src_bsign : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_bindx_u;

/* Define the union csr_cx_cindx_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 des_cindx : 15; /* [14:0] */
        u32 des_csign : 1;  /* [15] */
        u32 src_cindx : 15; /* [30:16] */
        u32 src_csign : 1;  /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_cindx_u;

/* Define the union csr_cx_cnt1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 c_count : 16; /* [15:0] */
        u32 rsv_22 : 16;  /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_cnt1_u;

/* Define the union csr_cx_cnt0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a_count : 16; /* [15:0] */
        u32 b_count : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_cnt0_u;

/* Define the union csr_cx_src_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 src_addr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_src_addr_u;

/* Define the union csr_cx_des_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 des_addr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_des_addr_u;

/* Define the union csr_cx_config_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ch_en : 1;     /* [0] */
        u32 itc_en : 1;    /* [1] */
        u32 flow_ctrl : 2; /* [3:2] */
        u32 peri : 6;      /* [9:4] */
        u32 rsv_23 : 2;    /* [11:10] */
        u32 dw : 3;        /* [14:12] */
        u32 rsv_24 : 1;    /* [15] */
        u32 sw : 3;        /* [18:16] */
        u32 rsv_25 : 1;    /* [19] */
        u32 dl : 4;        /* [23:20] */
        u32 sl : 4;        /* [27:24] */
        u32 dmode : 1;     /* [28] */
        u32 smode : 1;     /* [29] */
        u32 di : 1;        /* [30] */
        u32 si : 1;        /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_config_u;

/* Define the union csr_cx_axi_conf_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 aruser : 5;  /* [4:0] */
        u32 arprot : 3;  /* [7:5] */
        u32 arcache : 4; /* [11:8] */
        u32 awuser : 5;  /* [16:12] */
        u32 awprot : 3;  /* [19:17] */
        u32 awcache : 4; /* [23:20] */
        u32 rsv_26 : 8;  /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cx_axi_conf_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_int_stat_u int_stat;                     /* 0 */
    volatile csr_int_tc1_u int_tc1;                       /* 4 */
    volatile csr_int_tc2_u int_tc2;                       /* 8 */
    volatile csr_int_err1_u int_err1;                     /* C */
    volatile csr_int_err2_u int_err2;                     /* 10 */
    volatile csr_int_err3_u int_err3;                     /* 14 */
    volatile csr_int_tc1_mask_u int_tc1_mask;             /* 18 */
    volatile csr_int_tc2_mask_u int_tc2_mask;             /* 1C */
    volatile csr_int_err1_mask_u int_err1_mask;           /* 20 */
    volatile csr_int_err2_mask_u int_err2_mask;           /* 24 */
    volatile csr_int_err3_mask_u int_err3_mask;           /* 28 */
    volatile csr_int_tc1_raw_u int_tc1_raw;               /* 600 */
    volatile csr_int_tc2_raw_u int_tc2_raw;               /* 608 */
    volatile csr_int_err1_raw_u int_err1_raw;             /* 610 */
    volatile csr_int_err2_raw_u int_err2_raw;             /* 618 */
    volatile csr_int_err3_raw_u int_err3_raw;             /* 620 */
    volatile csr_sreq_u sreq;                             /* 660 */
    volatile csr_lsreq_u lsreq;                           /* 664 */
    volatile csr_breq_u breq;                             /* 668 */
    volatile csr_lbreq_u lbreq;                           /* 66C */
    volatile csr_freq_u freq;                             /* 670 */
    volatile csr_lfreq_u lfreq;                           /* 674 */
    volatile csr_ch_pri_u ch_pri;                         /* 688 */
    volatile csr_ch_stat_u ch_stat;                       /* 690 */
    volatile csr_dma_ctrl_u dma_ctrl;                     /* 698 */
    volatile csr_cx_curr_cnt1_u cx_curr_cnt1[16];         /* 700 */
    volatile csr_cx_curr_cnt0_u cx_curr_cnt0[16];         /* 704 */
    volatile csr_cx_curr_src_addr_u cx_curr_src_addr[16]; /* 708 */
    volatile csr_cx_curr_des_addr_u cx_curr_des_addr[16]; /* 70C */
    volatile csr_cx_lli_u cx_lli[16];                     /* 800 */
    volatile csr_cx_bindx_u cx_bindx[16];                 /* 804 */
    volatile csr_cx_cindx_u cx_cindx[16];                 /* 808 */
    volatile csr_cx_cnt1_u cx_cnt1[16];                   /* 80C */
    volatile csr_cx_cnt0_u cx_cnt0[16];                   /* 810 */
    volatile csr_cx_src_addr_u cx_src_addr[16];           /* 814 */
    volatile csr_cx_des_addr_u cx_des_addr[16];           /* 818 */
    volatile csr_cx_config_u cx_config[16];               /* 81C */
    volatile csr_cx_axi_conf_u cx_axi_conf[16];           /* 820 */
} S_dmac_REGS_TYPE;

/* Declare the struct pointor of the module dmac */
extern volatile S_dmac_REGS_TYPE *gopdmacAllReg;

/* Declare the functions that set the member value */
int iSetINT_STAT_int_stat(unsigned int uint_stat);
int iSetINT_TC1_int_tc1(unsigned int uint_tc1);
int iSetINT_TC2_int_tc2(unsigned int uint_tc2);
int iSetINT_ERR1_int_err1(unsigned int uint_err1);
int iSetINT_ERR2_int_err2(unsigned int uint_err2);
int iSetINT_ERR3_int_err3(unsigned int uint_err3);
int iSetINT_TC1_MASK_int_tc1_mask(unsigned int uint_tc1_mask);
int iSetINT_TC2_MASK_int_tc2_mask(unsigned int uint_tc2_mask);
int iSetINT_ERR1_MASK_int_err1_mask(unsigned int uint_err1_mask);
int iSetINT_ERR2_MASK_int_err2_mask(unsigned int uint_err2_mask);
int iSetINT_ERR3_MASK_int_err3_mask(unsigned int uint_err3_mask);
int iSetINT_TC1_RAW_int_tc1_raw(unsigned int uint_tc1_raw);
int iSetINT_TC2_RAW_int_tc2_raw(unsigned int uint_tc2_raw);
int iSetINT_ERR1_RAW_int_err1_raw(unsigned int uint_err1_raw);
int iSetINT_ERR2_RAW_int_err2_raw(unsigned int uint_err2_raw);
int iSetINT_ERR3_RAW_int_err3_raw(unsigned int uint_err3_raw);
int iSetSREQ_sreq(unsigned int usreq);
int iSetLSREQ_lsreq(unsigned int ulsreq);
int iSetBREQ_breq(unsigned int ubreq);
int iSetLBREQ_lbreq(unsigned int ulbreq);
int iSetFREQ_freq(unsigned int ufreq);
int iSetLFREQ_lfreq(unsigned int ulfreq);
int iSetCH_PRI_ch0_pri(unsigned int uch0_pri);
int iSetCH_PRI_ch1_pri(unsigned int uch1_pri);
int iSetCH_PRI_ch2_pri(unsigned int uch2_pri);
int iSetCH_PRI_ch3_pri(unsigned int uch3_pri);
int iSetCH_PRI_ch4_pri(unsigned int uch4_pri);
int iSetCH_PRI_ch5_pri(unsigned int uch5_pri);
int iSetCH_PRI_ch6_pri(unsigned int uch6_pri);
int iSetCH_PRI_ch7_pri(unsigned int uch7_pri);
int iSetCH_STAT_ch_stat(unsigned int uch_stat);
int iSetDMA_CTRL_halt_ack(unsigned int uhalt_ack);
int iSetDMA_CTRL_halt_req(unsigned int uhalt_req);
int iSetDMA_CTRL_conf_out4(unsigned int uconf_out4);
int iSetCX_CURR_CNT1_curr_c_count(unsigned int ucurr_c_count);
int iSetCX_CURR_CNT0_curr_a_count(unsigned int ucurr_a_count);
int iSetCX_CURR_CNT0_curr_b_count(unsigned int ucurr_b_count);
int iSetCX_CURR_SRC_ADDR_curr_src_addr(unsigned int ucurr_src_addr);
int iSetCX_CURR_DES_ADDR_curr_des_addr(unsigned int ucurr_des_addr);
int iSetCX_LLI_chain_en(unsigned int uchain_en);
int iSetCX_LLI_lli(unsigned int ulli);
int iSetCX_BINDX_des_bindx(unsigned int udes_bindx);
int iSetCX_BINDX_des_bsign(unsigned int udes_bsign);
int iSetCX_BINDX_src_bindx(unsigned int usrc_bindx);
int iSetCX_BINDX_src_bsign(unsigned int usrc_bsign);
int iSetCX_CINDX_des_cindx(unsigned int udes_cindx);
int iSetCX_CINDX_des_csign(unsigned int udes_csign);
int iSetCX_CINDX_src_cindx(unsigned int usrc_cindx);
int iSetCX_CINDX_src_csign(unsigned int usrc_csign);
int iSetCX_CNT1_c_count(unsigned int uc_count);
int iSetCX_CNT0_a_count(unsigned int ua_count);
int iSetCX_CNT0_b_count(unsigned int ub_count);
int iSetCX_SRC_ADDR_src_addr(unsigned int usrc_addr);
int iSetCX_DES_ADDR_des_addr(unsigned int udes_addr);
int iSetCX_CONFIG_ch_en(unsigned int uch_en);
int iSetCX_CONFIG_itc_en(unsigned int uitc_en);
int iSetCX_CONFIG_flow_ctrl(unsigned int uflow_ctrl);
int iSetCX_CONFIG_peri(unsigned int uperi);
int iSetCX_CONFIG_dw(unsigned int udw);
int iSetCX_CONFIG_sw(unsigned int usw);
int iSetCX_CONFIG_dl(unsigned int udl);
int iSetCX_CONFIG_sl(unsigned int usl);
int iSetCX_CONFIG_dmode(unsigned int udmode);
int iSetCX_CONFIG_smode(unsigned int usmode);
int iSetCX_CONFIG_di(unsigned int udi);
int iSetCX_CONFIG_si(unsigned int usi);
int iSetCX_AXI_CONF_aruser(unsigned int uaruser);
int iSetCX_AXI_CONF_arprot(unsigned int uarprot);
int iSetCX_AXI_CONF_arcache(unsigned int uarcache);
int iSetCX_AXI_CONF_awuser(unsigned int uawuser);
int iSetCX_AXI_CONF_awprot(unsigned int uawprot);
int iSetCX_AXI_CONF_awcache(unsigned int uawcache);

/* Define the union csr_rsv_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rsv_u;

/* Define the union csr_sc_test0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test0_u;

/* Define the union csr_sc_test1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test1_u;

/* Define the union csr_sc_test2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test2_u;

/* Define the union csr_sc_test3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test3_u;

/* Define the union csr_sc_test4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test4 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test4_u;

/* Define the union csr_sc_test5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test5 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test5_u;

/* Define the union csr_sc_test6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test6 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test6_u;

/* Define the union csr_sc_test7_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test7 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test7_u;

/* Define the union csr_sc_test8_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test8 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test8_u;

/* Define the union csr_sc_test9_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test9 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test9_u;

/* Define the union csr_sc_test10_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test10 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test10_u;

/* Define the union csr_sc_test11_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test11 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test11_u;

/* Define the union csr_sc_test12_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test12 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test12_u;

/* Define the union csr_sc_test13_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test13 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test13_u;

/* Define the union csr_sc_test14_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test14 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test14_u;

/* Define the union csr_sc_test15_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test15 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test15_u;

/* Define the union csr_sc_test16_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test16 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test16_u;

/* Define the union csr_sc_test17_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test17 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test17_u;

/* Define the union csr_sc_test18_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test18 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test18_u;

/* Define the union csr_sc_test19_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test19 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test19_u;

/* Define the union csr_sc_test20_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test20 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test20_u;

/* Define the union csr_sc_test21_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test21 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test21_u;

/* Define the union csr_sc_test22_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test22 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test22_u;

/* Define the union csr_sc_test23_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test23 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test23_u;

/* Define the union csr_sc_test24_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test24 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test24_u;

/* Define the union csr_sc_test25_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test25 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test25_u;

/* Define the union csr_sc_test26_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test26 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test26_u;

/* Define the union csr_sc_test27_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test27 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test27_u;

/* Define the union csr_sc_test28_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test28 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test28_u;

/* Define the union csr_sc_test29_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test29 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test29_u;

/* Define the union csr_sc_test30_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test30 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test30_u;

/* Define the union csr_sc_test31_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_test31 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_test31_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_rsv_u rsv;             /* 24 */
    volatile csr_sc_test0_u sc_test0;   /* 100 */
    volatile csr_sc_test1_u sc_test1;   /* 104 */
    volatile csr_sc_test2_u sc_test2;   /* 108 */
    volatile csr_sc_test3_u sc_test3;   /* 10C */
    volatile csr_sc_test4_u sc_test4;   /* 110 */
    volatile csr_sc_test5_u sc_test5;   /* 114 */
    volatile csr_sc_test6_u sc_test6;   /* 118 */
    volatile csr_sc_test7_u sc_test7;   /* 11C */
    volatile csr_sc_test8_u sc_test8;   /* 120 */
    volatile csr_sc_test9_u sc_test9;   /* 124 */
    volatile csr_sc_test10_u sc_test10; /* 128 */
    volatile csr_sc_test11_u sc_test11; /* 12C */
    volatile csr_sc_test12_u sc_test12; /* 130 */
    volatile csr_sc_test13_u sc_test13; /* 134 */
    volatile csr_sc_test14_u sc_test14; /* 138 */
    volatile csr_sc_test15_u sc_test15; /* 13C */
    volatile csr_sc_test16_u sc_test16; /* 140 */
    volatile csr_sc_test17_u sc_test17; /* 144 */
    volatile csr_sc_test18_u sc_test18; /* 148 */
    volatile csr_sc_test19_u sc_test19; /* 14C */
    volatile csr_sc_test20_u sc_test20; /* 150 */
    volatile csr_sc_test21_u sc_test21; /* 154 */
    volatile csr_sc_test22_u sc_test22; /* 158 */
    volatile csr_sc_test23_u sc_test23; /* 15C */
    volatile csr_sc_test24_u sc_test24; /* 160 */
    volatile csr_sc_test25_u sc_test25; /* 164 */
    volatile csr_sc_test26_u sc_test26; /* 168 */
    volatile csr_sc_test27_u sc_test27; /* 16C */
    volatile csr_sc_test28_u sc_test28; /* 170 */
    volatile csr_sc_test29_u sc_test29; /* 174 */
    volatile csr_sc_test30_u sc_test30; /* 178 */
    volatile csr_sc_test31_u sc_test31; /* 17C */
} S_sysctrl_csr0_REGS_TYPE;

/* Declare the struct pointor of the module sysctrl_csr0 */
extern volatile S_sysctrl_csr0_REGS_TYPE *gopsysctrl_csr0AllReg;

/* Declare the functions that set the member value */
int iSetRSV_rsv(unsigned int ursv);
int iSetSC_TEST0_sc_test0(unsigned int usc_test0);
int iSetSC_TEST1_sc_test1(unsigned int usc_test1);
int iSetSC_TEST2_sc_test2(unsigned int usc_test2);
int iSetSC_TEST3_sc_test3(unsigned int usc_test3);
int iSetSC_TEST4_sc_test4(unsigned int usc_test4);
int iSetSC_TEST5_sc_test5(unsigned int usc_test5);
int iSetSC_TEST6_sc_test6(unsigned int usc_test6);
int iSetSC_TEST7_sc_test7(unsigned int usc_test7);
int iSetSC_TEST8_sc_test8(unsigned int usc_test8);
int iSetSC_TEST9_sc_test9(unsigned int usc_test9);
int iSetSC_TEST10_sc_test10(unsigned int usc_test10);
int iSetSC_TEST11_sc_test11(unsigned int usc_test11);
int iSetSC_TEST12_sc_test12(unsigned int usc_test12);
int iSetSC_TEST13_sc_test13(unsigned int usc_test13);
int iSetSC_TEST14_sc_test14(unsigned int usc_test14);
int iSetSC_TEST15_sc_test15(unsigned int usc_test15);
int iSetSC_TEST16_sc_test16(unsigned int usc_test16);
int iSetSC_TEST17_sc_test17(unsigned int usc_test17);
int iSetSC_TEST18_sc_test18(unsigned int usc_test18);
int iSetSC_TEST19_sc_test19(unsigned int usc_test19);
int iSetSC_TEST20_sc_test20(unsigned int usc_test20);
int iSetSC_TEST21_sc_test21(unsigned int usc_test21);
int iSetSC_TEST22_sc_test22(unsigned int usc_test22);
int iSetSC_TEST23_sc_test23(unsigned int usc_test23);
int iSetSC_TEST24_sc_test24(unsigned int usc_test24);
int iSetSC_TEST25_sc_test25(unsigned int usc_test25);
int iSetSC_TEST26_sc_test26(unsigned int usc_test26);
int iSetSC_TEST27_sc_test27(unsigned int usc_test27);
int iSetSC_TEST28_sc_test28(unsigned int usc_test28);
int iSetSC_TEST29_sc_test29(unsigned int usc_test29);
int iSetSC_TEST30_sc_test30(unsigned int usc_test30);
int iSetSC_TEST31_sc_test31(unsigned int usc_test31);

/* Define the union csr_sc_up_tile_bitmap_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_up_tile_bitmap_en : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_up_tile_bitmap_en_u;

/* Define the union csr_sc_tile_bitmap_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_tile_bitmap_stat : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_tile_bitmap_stat_u;

/* Define the union csr_sc_tile_bitmap_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_tile_bitmap_set : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_tile_bitmap_set_u;

/* Define the union csr_mcore_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mcore_stat : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mcore_stat_u;

/* Define the union csr_mcore_stat_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mcore_stat_set : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mcore_stat_set_u;

/* Define the union csr_mpu_mcore_stat_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_mcore_stat_set : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mpu_mcore_stat_set_u;

/* Define the union csr_c2j_mbist_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mbist_written : 1; /* [0] */
        u32 mbist_enable : 1;  /* [1] */
        u32 mbist_resetn : 1;  /* [2] */
        u32 rsv_0 : 29;        /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_c2j_mbist_ctrl_u;

/* Define the union csr_c2j_mbist_datain_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mbist_datain : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_c2j_mbist_datain_u;

/* Define the union csr_c2j_mbist_dataout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mbist_dataout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_c2j_mbist_dataout_u;

/* Define the union csr_a55_sub_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gic600_fault_int_status : 1;   /* [0] */
        u32 gic600_err_int_status : 1;     /* [1] */
        u32 gic600_pmu_int_status : 1;     /* [2] */
        u32 nfaultirq_int_status : 2;      /* [4:3] */
        u32 nerrirq_int_status : 2;        /* [6:5] */
        u32 ncommirq_int_status : 1;       /* [7] */
        u32 nclusterpmuirq_int_status : 1; /* [8] */
        u32 rsv_1 : 23;                    /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_sub_int_status_u;

/* Define the union csr_a55_sub_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gic600_fault_int_en : 1;   /* [0] */
        u32 gic600_err_int_en : 1;     /* [1] */
        u32 gic600_pmu_int_en : 1;     /* [2] */
        u32 nfaultirq_int_en : 2;      /* [4:3] */
        u32 nerrirq_int_en : 2;        /* [6:5] */
        u32 ncommirq_int_en : 1;       /* [7] */
        u32 nclusterpmuirq_int_en : 1; /* [8] */
        u32 gic600_fault_unc_en : 1;   /* [9] */
        u32 gic600_err_unc_en : 1;     /* [10] */
        u32 nfaultirq_unc_en : 2;      /* [12:11] */
        u32 nerrirq_unc_en : 2;        /* [14:13] */
        u32 rsv_2 : 17;                /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_sub_int_en_u;

/* Define the union csr_a55_sub_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gic600_fault_int_set : 1;   /* [0] */
        u32 gic600_err_int_set : 1;     /* [1] */
        u32 gic600_pmu_int_set : 1;     /* [2] */
        u32 nfaultirq_int_set : 2;      /* [4:3] */
        u32 nerrirq_int_set : 2;        /* [6:5] */
        u32 ncommirq_int_set : 1;       /* [7] */
        u32 nclusterpmuirq_int_set : 1; /* [8] */
        u32 rsv_3 : 23;                 /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_sub_int_set_u;

/* Define the union csr_a55_sub_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gic600_fault_int_raw_status : 1;   /* [0] */
        u32 gic600_err_int_raw_status : 1;     /* [1] */
        u32 gic600_pmu_int_raw_status : 1;     /* [2] */
        u32 nfaultirq_int_raw_status : 2;      /* [4:3] */
        u32 nerrirq_int_raw_status : 2;        /* [6:5] */
        u32 ncommirq_int_raw_status : 1;       /* [7] */
        u32 nclusterpmuirq_int_raw_status : 1; /* [8] */
        u32 rsv_4 : 23;                        /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_sub_int_raw_status_u;

/* Define the union csr_r52_wfi_wfe_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hiss_wfi_wfe_stat : 2; /* [1:0] */
        u32 rsv_5 : 30;            /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_r52_wfi_wfe_stat_u;

/* Define the union csr_ncsi_func_mbist_clk_sel_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 func_mbist_clk_sel : 1; /* [0] */
        u32 rsv_6 : 31;             /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_func_mbist_clk_sel_u;

/* Define the union csr_wol_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pcie_prt_wol_int_status : 4;    /* [3:0] */
        u32 pcie_prt_lp_req_int_status : 4; /* [7:4] */
        u32 rsv_7 : 24;                     /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wol_int_status_u;

/* Define the union csr_wol_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pcie_prt_wol_int_en : 4;    /* [3:0] */
        u32 pcie_prt_lp_req_int_en : 4; /* [7:4] */
        u32 rsv_8 : 24;                 /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wol_int_en_u;

/* Define the union csr_wol_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wol_int_set : 4; /* [3:0] */
        u32 rsv_9 : 28;      /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wol_int_set_u;

/* Define the union csr_wol_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pcie_prt_wol_int_raw_status : 4;    /* [3:0] */
        u32 pcie_prt_lp_req_int_raw_status : 4; /* [7:4] */
        u32 rsv_10 : 24;                        /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wol_int_raw_status_u;

/* Define the union csr_wol_ctl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pcie_prt_mag_en : 4;  /* [3:0] */
        u32 pcie_prt_link_en : 4; /* [7:4] */
        u32 pcie_prt_wol_en : 4;  /* [11:8] */
        u32 rsv_11 : 20;          /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wol_ctl_u;

/* Define the union csr_lp_intset0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pcie_prt0_lp_req_int_set : 1; /* [0] */
        u32 rsv_12 : 31;                  /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lp_intset0_u;

/* Define the union csr_lp_intset1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pcie_prt1_lp_req_int_set : 1; /* [0] */
        u32 rsv_13 : 31;                  /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lp_intset1_u;

/* Define the union csr_lp_intset2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pcie_prt2_lp_req_int_set : 1; /* [0] */
        u32 rsv_14 : 31;                  /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lp_intset2_u;

/* Define the union csr_lp_intset3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pcie_prt3_lp_req_int_set : 1; /* [0] */
        u32 rsv_15 : 31;                  /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lp_intset3_u;

/* Define the union csr_lp_ready_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lp_ready : 4; /* [3:0] */
        u32 rsv_16 : 28;  /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lp_ready_u;

/* Define the union csr_perstn_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 perstn_int_status : 8; /* [7:0] */
        u32 rsv_17 : 24;           /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_perstn_int_status_u;

/* Define the union csr_perstn_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 perstn_int_en : 8; /* [7:0] */
        u32 rsv_18 : 24;       /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_perstn_int_en_u;

/* Define the union csr_perstn_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 perstn_int_set : 8; /* [7:0] */
        u32 rsv_19 : 24;        /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_perstn_int_set_u;

/* Define the union csr_perstn_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 perstn_int_raw_status : 8; /* [7:0] */
        u32 rsv_20 : 24;               /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_perstn_int_raw_status_u;

/* Define the union csr_up_uncrt_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 up_uncrt_en : 1; /* [0] */
        u32 rsv_21 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_up_uncrt_en_u;

/* Define the union csr_axi_bresp_mon_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_bresp_stats : 30; /* [29:0] */
        u32 axi_bresp_clr : 1;    /* [30] */
        u32 rsv_22 : 1;           /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_bresp_mon_u;

/* Define the union csr_axi_rresp_mon_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rresp_stats : 30; /* [29:0] */
        u32 axi_rresp_clr : 1;    /* [30] */
        u32 rsv_23 : 1;           /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rresp_mon_u;

/* Define the union csr_axi_resp_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rsp_mask_en : 1;      /* [0] */
        u32 hiss_axi_rsp_mask_en : 1; /* [1] */
        u32 rsv_24 : 30;              /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_resp_mask_u;

/* Define the union csr_perstn_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 perstn_status : 4; /* [3:0] */
        u32 rsv_25 : 28;       /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_perstn_status_u;

/* Define the union csr_perstn_hiss_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 perstn_hiss_int_status : 8; /* [7:0] */
        u32 rsv_26 : 24;                /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_perstn_hiss_int_status_u;

/* Define the union csr_perstn_hiss_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 perstn_hiss_int_en : 8; /* [7:0] */
        u32 rsv_27 : 24;            /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_perstn_hiss_int_en_u;

/* Define the union csr_axi4toaxi3_bypass_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_axi4toaxi3_byapss : 1; /* [0] */
        u32 rsv_28 : 31;              /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi4toaxi3_bypass_u;

/* Define the union csr_axi4toaxi3_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_axi4toaxi3_fifo_empty : 1; /* [0] */
        u32 sc_axi4toaxi3_fifo_full : 1;  /* [1] */
        u32 sc_axi4toaxi3_aw_err : 1;     /* [2] */
        u32 rsv_29 : 29;                  /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi4toaxi3_status_u;

/* Define the union csr_smb_dw_apb_i2c_debug_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smb_debug_addr_10bit : 1; /* [0] */
        u32 smb_debug_slaver_act : 1; /* [1] */
        u32 smb_debug_master_act : 1; /* [2] */
        u32 smb_debug_hs : 1;         /* [3] */
        u32 smb_debug_wr : 1;         /* [4] */
        u32 smb_debug_rd : 1;         /* [5] */
        u32 smb_debug_addr : 1;       /* [6] */
        u32 smb_debug_adata : 1;      /* [7] */
        u32 smb_debug_p_gen : 1;      /* [8] */
        u32 smb_debug_s_gen : 1;      /* [9] */
        u32 smb_debug_slv_cstate : 4; /* [13:10] */
        u32 smb_debug_mst_cstate : 5; /* [18:14] */
        u32 rsv_30 : 13;              /* [31:19] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_dw_apb_i2c_debug_u;

/* Define the union csr_a55_fcm_cluster_config0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_sc_sercure_debug_en : 1;    /* [0] */
        u32 a55_sc_stretch_l2ramclk_en : 1; /* [1] */
        u32 rsv_31 : 30;                    /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_fcm_cluster_config0_u;

/* Define the union csr_a55_fcm_cluster_config1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_aa64naa32 : 1;     /* [0] */
        u32 a55_cfgend : 1;        /* [1] */
        u32 a55_cfgte : 1;         /* [2] */
        u32 a55_clusteridaff2 : 8; /* [10:3] */
        u32 a55_clusteridaff3 : 8; /* [18:11] */
        u32 a55_giccdisable : 1;   /* [19] */
        u32 a55_vinithi : 1;       /* [20] */
        u32 nfiq : 1;              /* [21] */
        u32 nirq : 1;              /* [22] */
        u32 rsv_32 : 9;            /* [31:23] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_fcm_cluster_config1_u;

/* Define the union csr_a55_rvbaraddry_cfg_l_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_rvbaraddry_l : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_rvbaraddry_cfg_l_u;

/* Define the union csr_a55_rvbaraddry_cfg_h_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_rvbaraddry_h : 6; /* [5:0] */
        u32 rsv_33 : 26;          /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_rvbaraddry_cfg_h_u;

/* Define the union csr_a55_broadcast_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_broadcastcachemaint : 1;    /* [0] */
        u32 a55_broadcastcachemaintpou : 1; /* [1] */
        u32 a55_broadcastpersist : 1;       /* [2] */
        u32 a55_broadcastouter : 1;         /* [3] */
        u32 rsv_34 : 28;                    /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_broadcast_cfg_u;

/* Define the union csr_a55_debug_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_dbgen : 1;        /* [0] */
        u32 a55_niden : 1;        /* [1] */
        u32 a55_spiden : 1;       /* [2] */
        u32 a55_spniden : 1;      /* [3] */
        u32 a55_dbgconnected : 1; /* [4] */
        u32 rsv_35 : 27;          /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_debug_cfg_u;

/* Define the union csr_a55_fcm_cluster_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_custom_wfi : 1;           /* [0] */
        u32 a55_custom_wfe : 1;           /* [1] */
        u32 a55_sc_pmccnt_q63bit : 1;     /* [2] */
        u32 a55_sc_gic_irq : 1;           /* [3] */
        u32 a55_sc_gic_fiq : 1;           /* [4] */
        u32 a55_sc_dbg_ack : 1;           /* [5] */
        u32 reg_clusterpmccntr_63bit : 1; /* [6] */
        u32 rsv_36 : 25;                  /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_fcm_cluster_status_u;

/* Define the union csr_a55_pmu_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_coreinstrret : 1; /* [0] */
        u32 a55_coreinstrrun : 1; /* [1] */
        u32 rsv_37 : 30;          /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_pmu_status_u;

/* Define the union csr_dbg_block_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dbg_block_dbgpwrupreq : 1;        /* [0] */
        u32 dbg_block_clusterdbgpwrupreq : 1; /* [1] */
        u32 rsv_38 : 30;                      /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_dbg_block_status_u;

/* Define the union csr_gic600_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gic600_sample_req_gic : 1; /* [0] */
        u32 gic600_gict_allow_ns : 1;  /* [1] */
        u32 gic600_gicp_allow_ns : 1;  /* [2] */
        u32 gic600_cpu_active : 1;     /* [3] */
        u32 rsv_39 : 28;               /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gic600_cfg_u;

/* Define the union csr_gic600_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gic600_sample_ack_gic : 1; /* [0] */
        u32 rsv_40 : 31;               /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gic600_status_u;

/* Define the union csr_crg_clk_div_sel_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 aclkm_div_sel : 2;     /* [1:0] */
        u32 aclks_div_sel : 2;     /* [3:2] */
        u32 aclkmp_div_sel : 2;    /* [5:4] */
        u32 periphclk_div_sel : 4; /* [9:6] */
        u32 pclk_div_sel : 4;      /* [13:10] */
        u32 atclk_div_sel : 4;     /* [17:14] */
        u32 rsv_41 : 14;           /* [31:18] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_crg_clk_div_sel_u;

/* Define the union csr_crg_clkoff_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clkoff_coreclk : 1;   /* [0] */
        u32 clkoff_periphclk : 1; /* [1] */
        u32 clkoff_sclk : 1;      /* [2] */
        u32 clkoff_atclk : 1;     /* [3] */
        u32 clkoff_pclk : 1;      /* [4] */
        u32 clkoff_aclkmp : 1;    /* [5] */
        u32 clkoff_aclks : 1;     /* [6] */
        u32 clkoff_alckm : 1;     /* [7] */
        u32 clkoff_swclktck : 1;  /* [8] */
        u32 clkoff_hpm : 1;       /* [9] */
        u32 rsv_42 : 22;          /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_crg_clkoff_u;

/* Define the union csr_crg_srst_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 srst_req_napbreset : 1;     /* [0] */
        u32 srst_req_ncpucorereset : 1; /* [1] */
        u32 srst_req_ncorereset : 1;    /* [2] */
        u32 srst_req_npreset : 1;       /* [3] */
        u32 srst_req_nsporeset : 1;     /* [4] */
        u32 srst_req_nsreset : 1;       /* [5] */
        u32 srst_req_natreset : 1;      /* [6] */
        u32 srst_req_ngicreset : 1;     /* [7] */
        u32 srst_req_nperiphreset : 1;  /* [8] */
        u32 srst_req_ndapreset : 1;     /* [9] */
        u32 srst_req_nmstreset : 1;     /* [10] */
        u32 srst_req_nppreset : 1;      /* [11] */
        u32 srst_req_ndbgppreset : 1;   /* [12] */
        u32 rsv_43 : 19;                /* [31:13] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_crg_srst_u;

/* Define the union csr_spi_ssp_sel_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spi_ssp_sel : 1; /* [0] */
        u32 rsv_44 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_spi_ssp_sel_u;

/* Define the union csr_a55_core_pchl_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 corepactive : 18; /* [17:0] */
        u32 rsv_45 : 2;       /* [19:18] */
        u32 corepaccept : 1;  /* [20] */
        u32 corepdeny : 1;    /* [21] */
        u32 rsv_46 : 10;      /* [31:22] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_core_pchl_stat_u;

/* Define the union csr_a55_core_pchl_req_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 corepstate : 6; /* [5:0] */
        u32 rsv_47 : 2;     /* [7:6] */
        u32 corepreq : 1;   /* [8] */
        u32 rsv_48 : 23;    /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_core_pchl_req_u;

/* Define the union csr_a55_cluster_pchl_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clusterpactive : 20; /* [19:0] */
        u32 clusterpaccept : 1;  /* [20] */
        u32 clusterpdeny : 1;    /* [21] */
        u32 rsv_49 : 10;         /* [31:22] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_cluster_pchl_stat_u;

/* Define the union csr_a55_cluster_pchl_req_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clusterpstate : 7; /* [6:0] */
        u32 rsv_50 : 1;        /* [7] */
        u32 clusterpreq : 1;   /* [8] */
        u32 rsv_51 : 23;       /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_cluster_pchl_req_u;

/* Define the union csr_sc_mpu_map_addr0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr0 : 12; /* [11:0] */
        u32 rsv_52 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr0_u;

/* Define the union csr_sc_mpu_map_addr1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr1 : 12; /* [11:0] */
        u32 rsv_53 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr1_u;

/* Define the union csr_sc_mpu_map_addr2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr2 : 12; /* [11:0] */
        u32 rsv_54 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr2_u;

/* Define the union csr_sc_mpu_map_addr3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr3 : 12; /* [11:0] */
        u32 rsv_55 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr3_u;

/* Define the union csr_sc_mpu_map_addr4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr4 : 12; /* [11:0] */
        u32 rsv_56 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr4_u;

/* Define the union csr_sc_mpu_map_addr5_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr5 : 12; /* [11:0] */
        u32 rsv_57 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr5_u;

/* Define the union csr_sc_mpu_map_addr6_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr6 : 12; /* [11:0] */
        u32 rsv_58 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr6_u;

/* Define the union csr_sc_mpu_map_addr7_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr7 : 12; /* [11:0] */
        u32 rsv_59 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr7_u;

/* Define the union csr_sc_mpu_map_addr8_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr8 : 12; /* [11:0] */
        u32 rsv_60 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr8_u;

/* Define the union csr_sc_mpu_map_addr9_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr9 : 12; /* [11:0] */
        u32 rsv_61 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr9_u;

/* Define the union csr_sc_mpu_map_addr10_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr10 : 12; /* [11:0] */
        u32 rsv_62 : 20;         /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr10_u;

/* Define the union csr_sc_mpu_map_addr11_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr11 : 12; /* [11:0] */
        u32 rsv_63 : 20;         /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr11_u;

/* Define the union csr_sc_mpu_map_addr12_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr12 : 12; /* [11:0] */
        u32 rsv_64 : 20;         /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr12_u;

/* Define the union csr_sc_mpu_map_addr13_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr13 : 12; /* [11:0] */
        u32 rsv_65 : 20;         /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr13_u;

/* Define the union csr_sc_mpu_map_addr14_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr14 : 12; /* [11:0] */
        u32 rsv_66 : 20;         /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr14_u;

/* Define the union csr_sc_mpu_map_addr15_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_map_addr15 : 12; /* [11:0] */
        u32 rsv_67 : 20;         /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_map_addr15_u;

/* Define the union csr_sc_spu_axuser_no_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 awuser_no_spu : 1;     /* [0] */
        u32 aruser_no_spu : 1;     /* [1] */
        u32 rsv_68 : 6;            /* [7:2] */
        u32 awuser_no_sel_spu : 1; /* [8] */
        u32 aruser_no_sel_spu : 1; /* [9] */
        u32 rsv_69 : 22;           /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_spu_axuser_no_ctrl_u;

/* Define the union csr_sc_mpu_axuser_31_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_axuser_31_0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_axuser_31_0_u;

/* Define the union csr_sc_mpu_axuser_63_32_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_axuser_63_32 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_axuser_63_32_u;

/* Define the union csr_sc_mpu_axuser_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_axuser_67_64 : 4; /* [3:0] */
        u32 mpu_axqos : 4;        /* [7:4] */
        u32 mpu_wuser : 4;        /* [11:8] */
        u32 rsv_70 : 20;          /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_axuser_u;

/* Define the union csr_sc_mpu_axuser_ns_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_axuser_38 : 1; /* [0] */
        u32 rsv_71 : 31;       /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_axuser_ns_u;

/* Define the union csr_sc_mpu_axuser_ns_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_axuser_ns_mux : 1; /* [0] */
        u32 a55_axprot_ctrl : 1;   /* [1] */
        u32 rsv_72 : 30;           /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_axuser_ns_ctrl_u;

/* Define the union csr_sc_mpu_lpbx_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 spu_exception_req : 1;    /* [0] */
        u32 spu_lpbx_mode : 1;        /* [1] */
        u32 spu_exception_ack : 1;    /* [2] */
        u32 spu_exception_active : 1; /* [3] */
        u32 spu_ruser_src_sel : 1;    /* [4] */
        u32 rsv_73 : 27;              /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_lpbx_ctrl_u;

/* Define the union csr_a55_to_r52_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_to_r52_int_status : 4; /* [3:0] */
        u32 rsv_74 : 28;               /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_to_r52_int_status_u;

/* Define the union csr_a55_to_r52_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_to_r52_int_en : 4; /* [3:0] */
        u32 rsv_75 : 28;           /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_to_r52_int_en_u;

/* Define the union csr_a55_to_r52_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 a55_to_r52_int_set : 4; /* [3:0] */
        u32 rsv_76 : 28;            /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_to_r52_int_set_u;

/* Define the union csr_r52_to_a55_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 r52_to_a55_int_status : 4; /* [3:0] */
        u32 rsv_77 : 28;               /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_r52_to_a55_int_status_u;

/* Define the union csr_r52_to_a55_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 r52_to_a55_int_en : 4; /* [3:0] */
        u32 rsv_78 : 28;           /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_r52_to_a55_int_en_u;

/* Define the union csr_r52_to_a55_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 r52_to_a55_int_set : 4; /* [3:0] */
        u32 rsv_79 : 28;            /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_r52_to_a55_int_set_u;

/* Define the union csr_a55_r52_int_sel_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hiss_uart_int_en : 1;   /* [0] */
        u32 mpu_uart_int_en : 1;    /* [1] */
        u32 hiss_djtagm_int_en : 1; /* [2] */
        u32 mpu_djtagm_int_en : 1;  /* [3] */
        u32 rsv_80 : 28;            /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_a55_r52_int_sel_u;

/* Define the union csr_cpi_mpu_lpbx_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_exception_req : 1;    /* [0] */
        u32 cpi_lpbx_mode : 1;        /* [1] */
        u32 cpi_exception_ack : 1;    /* [2] */
        u32 cpi_exception_active : 1; /* [3] */
        u32 rsv_81 : 28;              /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cpi_mpu_lpbx_ctrl_u;

/* Define the union csr_ring2axi_mpu_lpbx_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ring2axi_exception_req : 1;    /* [0] */
        u32 ring2axi_lpbx_mode : 1;        /* [1] */
        u32 ring2axi_exception_ack : 1;    /* [2] */
        u32 ring2axi_exception_active : 1; /* [3] */
        u32 rsv_82 : 28;                   /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ring2axi_mpu_lpbx_ctrl_u;

/* Define the union csr_crg_wdg_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wdg_en : 1;  /* [0] */
        u32 rsv_83 : 31; /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_crg_wdg_ctrl_u;

/* Define the union csr_crg_wdg_cnt_config_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wdg_cnt_cfg : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_crg_wdg_cnt_config_u;

/* Define the union csr_crg_wdg_feed_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wdg_feed : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_crg_wdg_feed_u;

/* Define the union csr_wdg_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wdg_int_status : 1; /* [0] */
        u32 rsv_84 : 31;        /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wdg_int_status_u;

/* Define the union csr_wdg_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wdg_int_en : 1; /* [0] */
        u32 rsv_85 : 31;    /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wdg_int_en_u;

/* Define the union csr_wdg_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wdg_int_set : 1; /* [0] */
        u32 rsv_86 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wdg_int_set_u;

/* Define the union csr_wdg_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 wdg_int_raw_status : 1; /* [0] */
        u32 rsv_87 : 31;            /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_wdg_int_raw_status_u;

/* Define the union csr_hiss_unc_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hiss_rom_mecc_int_status : 1; /* [0] */
        u32 hiss_r52_int_status : 1;      /* [1] */
        u32 hiss_wdg_int_status : 1;      /* [2] */
        u32 rsv_88 : 29;                  /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_hiss_unc_int_status_u;

/* Define the union csr_hiss_unc_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hiss_rom_mecc_int_en : 1; /* [0] */
        u32 hiss_r52_int_en : 1;      /* [1] */
        u32 hiss_wdg_int_en : 1;      /* [2] */
        u32 hiss_rom_mecc_unc_en : 1; /* [3] */
        u32 hiss_r52_unc_en : 1;      /* [4] */
        u32 hiss_wdg_unc_en : 1;      /* [5] */
        u32 rsv_89 : 26;              /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_hiss_unc_int_en_u;

/* Define the union csr_hiss_unc_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hiss_rom_mecc_int_set : 1; /* [0] */
        u32 hiss_r52_int_set : 1;      /* [1] */
        u32 hiss_wdg_int_set : 1;      /* [2] */
        u32 rsv_90 : 29;               /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_hiss_unc_int_set_u;

/* Define the union csr_hiss_unc_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hiss_rom_mecc_int_raw_status : 1; /* [0] */
        u32 hiss_r52_int_raw_status : 1;      /* [1] */
        u32 hiss_wdg_int_raw_status : 1;      /* [2] */
        u32 rsv_91 : 29;                      /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_hiss_unc_int_raw_status_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_sc_up_tile_bitmap_en_u sc_up_tile_bitmap_en[14];   /* 800 */
    volatile csr_sc_tile_bitmap_stat_u sc_tile_bitmap_stat[14];     /* 838 */
    volatile csr_sc_tile_bitmap_set_u sc_tile_bitmap_set[14];       /* 870 */
    volatile csr_mcore_stat_u mcore_stat[14];                       /* 8B8 */
    volatile csr_mcore_stat_set_u mcore_stat_set[14];               /* 8F0 */
    volatile csr_mpu_mcore_stat_set_u mpu_mcore_stat_set[14];       /* 928 */
    volatile csr_c2j_mbist_ctrl_u c2j_mbist_ctrl;                   /* 974 */
    volatile csr_c2j_mbist_datain_u c2j_mbist_datain;               /* 978 */
    volatile csr_c2j_mbist_dataout_u c2j_mbist_dataout;             /* 97C */
    volatile csr_a55_sub_int_status_u a55_sub_int_status;           /* 980 */
    volatile csr_a55_sub_int_en_u a55_sub_int_en;                   /* 984 */
    volatile csr_a55_sub_int_set_u a55_sub_int_set;                 /* 988 */
    volatile csr_a55_sub_int_raw_status_u a55_sub_int_raw_status;   /* 98C */
    volatile csr_r52_wfi_wfe_stat_u r52_wfi_wfe_stat;               /* 990 */
    volatile csr_ncsi_func_mbist_clk_sel_u ncsi_func_mbist_clk_sel; /* 994 */
    volatile csr_wol_int_status_u wol_int_status;                   /* 9A0 */
    volatile csr_wol_int_en_u wol_int_en;                           /* 9A4 */
    volatile csr_wol_int_set_u wol_int_set;                         /* 9A8 */
    volatile csr_wol_int_raw_status_u wol_int_raw_status;           /* 9AC */
    volatile csr_wol_ctl_u wol_ctl;                                 /* 9B0 */
    volatile csr_lp_intset0_u lp_intset0;                           /* 9B4 */
    volatile csr_lp_intset1_u lp_intset1;                           /* 9B8 */
    volatile csr_lp_intset2_u lp_intset2;                           /* 9BC */
    volatile csr_lp_intset3_u lp_intset3;                           /* 9C0 */
    volatile csr_lp_ready_u lp_ready;                               /* 9C4 */
    volatile csr_perstn_int_status_u perstn_int_status;             /* 9C8 */
    volatile csr_perstn_int_en_u perstn_int_en;                     /* 9CC */
    volatile csr_perstn_int_set_u perstn_int_set;                   /* 9D0 */
    volatile csr_perstn_int_raw_status_u perstn_int_raw_status;     /* 9D4 */
    volatile csr_up_uncrt_en_u up_uncrt_en;                         /* 9D8 */
    volatile csr_axi_bresp_mon_u axi_bresp_mon;                     /* 9DC */
    volatile csr_axi_rresp_mon_u axi_rresp_mon;                     /* 9E0 */
    volatile csr_axi_resp_mask_u axi_resp_mask;                     /* 9E4 */
    volatile csr_perstn_status_u perstn_status;                     /* 9E8 */
    volatile csr_perstn_hiss_int_status_u perstn_hiss_int_status;   /* 9EC */
    volatile csr_perstn_hiss_int_en_u perstn_hiss_int_en;           /* 9F0 */
    volatile csr_axi4toaxi3_bypass_u axi4toaxi3_bypass;             /* 9F4 */
    volatile csr_axi4toaxi3_status_u axi4toaxi3_status;             /* 9F8 */
    volatile csr_smb_dw_apb_i2c_debug_u smb_dw_apb_i2c_debug;       /* 9FC */
    volatile csr_a55_fcm_cluster_config0_u a55_fcm_cluster_config0; /* A04 */
    volatile csr_a55_fcm_cluster_config1_u a55_fcm_cluster_config1; /* A08 */
    volatile csr_a55_rvbaraddry_cfg_l_u a55_rvbaraddry_cfg_l;       /* A0C */
    volatile csr_a55_rvbaraddry_cfg_h_u a55_rvbaraddry_cfg_h;       /* A10 */
    volatile csr_a55_broadcast_cfg_u a55_broadcast_cfg;             /* A14 */
    volatile csr_a55_debug_cfg_u a55_debug_cfg;                     /* A18 */
    volatile csr_a55_fcm_cluster_status_u a55_fcm_cluster_status;   /* A1C */
    volatile csr_a55_pmu_status_u a55_pmu_status;                   /* A20 */
    volatile csr_dbg_block_status_u dbg_block_status;               /* A24 */
    volatile csr_gic600_cfg_u gic600_cfg;                           /* A28 */
    volatile csr_gic600_status_u gic600_status;                     /* A2C */
    volatile csr_crg_clk_div_sel_u crg_clk_div_sel;                 /* A30 */
    volatile csr_crg_clkoff_u crg_clkoff;                           /* A34 */
    volatile csr_crg_srst_u crg_srst;                               /* A38 */
    volatile csr_spi_ssp_sel_u spi_ssp_sel;                         /* A3C */
    volatile csr_a55_core_pchl_stat_u a55_core_pchl_stat;           /* A40 */
    volatile csr_a55_core_pchl_req_u a55_core_pchl_req;             /* A44 */
    volatile csr_a55_cluster_pchl_stat_u a55_cluster_pchl_stat;     /* A48 */
    volatile csr_a55_cluster_pchl_req_u a55_cluster_pchl_req;       /* A4C */
    volatile csr_sc_mpu_map_addr0_u sc_mpu_map_addr0;               /* B00 */
    volatile csr_sc_mpu_map_addr1_u sc_mpu_map_addr1;               /* B04 */
    volatile csr_sc_mpu_map_addr2_u sc_mpu_map_addr2;               /* B08 */
    volatile csr_sc_mpu_map_addr3_u sc_mpu_map_addr3;               /* B0C */
    volatile csr_sc_mpu_map_addr4_u sc_mpu_map_addr4;               /* B10 */
    volatile csr_sc_mpu_map_addr5_u sc_mpu_map_addr5;               /* B14 */
    volatile csr_sc_mpu_map_addr6_u sc_mpu_map_addr6;               /* B18 */
    volatile csr_sc_mpu_map_addr7_u sc_mpu_map_addr7;               /* B1C */
    volatile csr_sc_mpu_map_addr8_u sc_mpu_map_addr8;               /* B20 */
    volatile csr_sc_mpu_map_addr9_u sc_mpu_map_addr9;               /* B24 */
    volatile csr_sc_mpu_map_addr10_u sc_mpu_map_addr10;             /* B28 */
    volatile csr_sc_mpu_map_addr11_u sc_mpu_map_addr11;             /* B2C */
    volatile csr_sc_mpu_map_addr12_u sc_mpu_map_addr12;             /* B30 */
    volatile csr_sc_mpu_map_addr13_u sc_mpu_map_addr13;             /* B34 */
    volatile csr_sc_mpu_map_addr14_u sc_mpu_map_addr14;             /* B38 */
    volatile csr_sc_mpu_map_addr15_u sc_mpu_map_addr15;             /* B3C */
    volatile csr_sc_spu_axuser_no_ctrl_u sc_spu_axuser_no_ctrl;     /* B40 */
    volatile csr_sc_mpu_axuser_31_0_u sc_mpu_axuser_31_0;           /* B44 */
    volatile csr_sc_mpu_axuser_63_32_u sc_mpu_axuser_63_32;         /* B48 */
    volatile csr_sc_mpu_axuser_u sc_mpu_axuser;                     /* B4C */
    volatile csr_sc_mpu_axuser_ns_u sc_mpu_axuser_ns;               /* B50 */
    volatile csr_sc_mpu_axuser_ns_ctrl_u sc_mpu_axuser_ns_ctrl;     /* B54 */
    volatile csr_sc_mpu_lpbx_ctrl_u sc_mpu_lpbx_ctrl;               /* B58 */
    volatile csr_a55_to_r52_int_status_u a55_to_r52_int_status;     /* C00 */
    volatile csr_a55_to_r52_int_en_u a55_to_r52_int_en;             /* C04 */
    volatile csr_a55_to_r52_int_set_u a55_to_r52_int_set;           /* C08 */
    volatile csr_r52_to_a55_int_status_u r52_to_a55_int_status;     /* C0C */
    volatile csr_r52_to_a55_int_en_u r52_to_a55_int_en;             /* C10 */
    volatile csr_r52_to_a55_int_set_u r52_to_a55_int_set;         /* C14 */
    volatile csr_a55_r52_int_sel_u a55_r52_int_sel;                 /* C18 */
    volatile csr_cpi_mpu_lpbx_ctrl_u cpi_mpu_lpbx_ctrl;             /* C1C */
    volatile csr_ring2axi_mpu_lpbx_ctrl_u ring2axi_mpu_lpbx_ctrl;   /* C20 */
    volatile csr_crg_wdg_ctrl_u crg_wdg_ctrl;                       /* C24 */
    volatile csr_crg_wdg_cnt_config_u crg_wdg_cnt_config;           /* C28 */
    volatile csr_crg_wdg_feed_u crg_wdg_feed;                       /* C2C */
    volatile csr_wdg_int_status_u wdg_int_status;                   /* C30 */
    volatile csr_wdg_int_en_u wdg_int_en;                           /* C34 */
    volatile csr_wdg_int_set_u wdg_int_set;                         /* C38 */
    volatile csr_wdg_int_raw_status_u wdg_int_raw_status;           /* C3C */
    volatile csr_hiss_unc_int_status_u hiss_unc_int_status;         /* C40 */
    volatile csr_hiss_unc_int_en_u hiss_unc_int_en;                 /* C44 */
    volatile csr_hiss_unc_int_set_u hiss_unc_int_set;               /* C48 */
    volatile csr_hiss_unc_int_raw_status_u hiss_unc_int_raw_status; /* C4C */
} S_sysctrl_csr1_REGS_TYPE;

/* Declare the struct pointor of the module sysctrl_csr1 */
extern volatile S_sysctrl_csr1_REGS_TYPE *gopsysctrl_csr1AllReg;

/* Declare the functions that set the member value */
int iSetSC_UP_TILE_BITMAP_EN_sc_up_tile_bitmap_en(unsigned int usc_up_tile_bitmap_en);
int iSetSC_TILE_BITMAP_STAT_sc_tile_bitmap_stat(unsigned int usc_tile_bitmap_stat);
int iSetSC_TILE_BITMAP_SET_sc_tile_bitmap_set(unsigned int usc_tile_bitmap_set);
int iSetMCORE_STAT_mcore_stat(unsigned int umcore_stat);
int iSetMCORE_STAT_SET_mcore_stat_set(unsigned int umcore_stat_set);
int iSetMPU_MCORE_STAT_SET_mpu_mcore_stat_set(unsigned int umpu_mcore_stat_set);
int iSetC2J_MBIST_CTRL_mbist_written(unsigned int umbist_written);
int iSetC2J_MBIST_CTRL_mbist_enable(unsigned int umbist_enable);
int iSetC2J_MBIST_CTRL_mbist_resetn(unsigned int umbist_resetn);
int iSetC2J_MBIST_DATAIN_mbist_datain(unsigned int umbist_datain);
int iSetC2J_MBIST_DATAOUT_mbist_dataout(unsigned int umbist_dataout);
int iSetA55_SUB_INT_STATUS_gic600_fault_int_status(unsigned int ugic600_fault_int_status);
int iSetA55_SUB_INT_STATUS_gic600_err_int_status(unsigned int ugic600_err_int_status);
int iSetA55_SUB_INT_STATUS_gic600_pmu_int_status(unsigned int ugic600_pmu_int_status);
int iSetA55_SUB_INT_STATUS_nfaultirq_int_status(unsigned int unfaultirq_int_status);
int iSetA55_SUB_INT_STATUS_nerrirq_int_status(unsigned int unerrirq_int_status);
int iSetA55_SUB_INT_STATUS_ncommirq_int_status(unsigned int uncommirq_int_status);
int iSetA55_SUB_INT_STATUS_nclusterpmuirq_int_status(unsigned int unclusterpmuirq_int_status);
int iSetA55_SUB_INT_EN_gic600_fault_int_en(unsigned int ugic600_fault_int_en);
int iSetA55_SUB_INT_EN_gic600_err_int_en(unsigned int ugic600_err_int_en);
int iSetA55_SUB_INT_EN_gic600_pmu_int_en(unsigned int ugic600_pmu_int_en);
int iSetA55_SUB_INT_EN_nfaultirq_int_en(unsigned int unfaultirq_int_en);
int iSetA55_SUB_INT_EN_nerrirq_int_en(unsigned int unerrirq_int_en);
int iSetA55_SUB_INT_EN_ncommirq_int_en(unsigned int uncommirq_int_en);
int iSetA55_SUB_INT_EN_nclusterpmuirq_int_en(unsigned int unclusterpmuirq_int_en);
int iSetA55_SUB_INT_EN_gic600_fault_unc_en(unsigned int ugic600_fault_unc_en);
int iSetA55_SUB_INT_EN_gic600_err_unc_en(unsigned int ugic600_err_unc_en);
int iSetA55_SUB_INT_EN_nfaultirq_unc_en(unsigned int unfaultirq_unc_en);
int iSetA55_SUB_INT_EN_nerrirq_unc_en(unsigned int unerrirq_unc_en);
int iSetA55_SUB_INT_SET_gic600_fault_int_set(unsigned int ugic600_fault_int_set);
int iSetA55_SUB_INT_SET_gic600_err_int_set(unsigned int ugic600_err_int_set);
int iSetA55_SUB_INT_SET_gic600_pmu_int_set(unsigned int ugic600_pmu_int_set);
int iSetA55_SUB_INT_SET_nfaultirq_int_set(unsigned int unfaultirq_int_set);
int iSetA55_SUB_INT_SET_nerrirq_int_set(unsigned int unerrirq_int_set);
int iSetA55_SUB_INT_SET_ncommirq_int_set(unsigned int uncommirq_int_set);
int iSetA55_SUB_INT_SET_nclusterpmuirq_int_set(unsigned int unclusterpmuirq_int_set);
int iSetA55_SUB_INT_RAW_STATUS_gic600_fault_int_raw_status(unsigned int ugic600_fault_int_raw_status);
int iSetA55_SUB_INT_RAW_STATUS_gic600_err_int_raw_status(unsigned int ugic600_err_int_raw_status);
int iSetA55_SUB_INT_RAW_STATUS_gic600_pmu_int_raw_status(unsigned int ugic600_pmu_int_raw_status);
int iSetA55_SUB_INT_RAW_STATUS_nfaultirq_int_raw_status(unsigned int unfaultirq_int_raw_status);
int iSetA55_SUB_INT_RAW_STATUS_nerrirq_int_raw_status(unsigned int unerrirq_int_raw_status);
int iSetA55_SUB_INT_RAW_STATUS_ncommirq_int_raw_status(unsigned int uncommirq_int_raw_status);
int iSetA55_SUB_INT_RAW_STATUS_nclusterpmuirq_int_raw_status(unsigned int unclusterpmuirq_int_raw_status);
int iSetR52_WFI_WFE_STAT_hiss_wfi_wfe_stat(unsigned int uhiss_wfi_wfe_stat);
int iSetNCSI_FUNC_MBIST_CLK_SEL_func_mbist_clk_sel(unsigned int ufunc_mbist_clk_sel);
int iSetWOL_INT_STATUS_pcie_prt_wol_int_status(unsigned int upcie_prt_wol_int_status);
int iSetWOL_INT_STATUS_pcie_prt_lp_req_int_status(unsigned int upcie_prt_lp_req_int_status);
int iSetWOL_INT_EN_pcie_prt_wol_int_en(unsigned int upcie_prt_wol_int_en);
int iSetWOL_INT_EN_pcie_prt_lp_req_int_en(unsigned int upcie_prt_lp_req_int_en);
int iSetWOL_INT_SET_wol_int_set(unsigned int uwol_int_set);
int iSetWOL_INT_RAW_STATUS_pcie_prt_wol_int_raw_status(unsigned int upcie_prt_wol_int_raw_status);
int iSetWOL_INT_RAW_STATUS_pcie_prt_lp_req_int_raw_status(unsigned int upcie_prt_lp_req_int_raw_status);
int iSetWOL_CTL_pcie_prt_mag_en(unsigned int upcie_prt_mag_en);
int iSetWOL_CTL_pcie_prt_link_en(unsigned int upcie_prt_link_en);
int iSetWOL_CTL_pcie_prt_wol_en(unsigned int upcie_prt_wol_en);
int iSetLP_INTSET0_pcie_prt0_lp_req_int_set(unsigned int upcie_prt0_lp_req_int_set);
int iSetLP_INTSET1_pcie_prt1_lp_req_int_set(unsigned int upcie_prt1_lp_req_int_set);
int iSetLP_INTSET2_pcie_prt2_lp_req_int_set(unsigned int upcie_prt2_lp_req_int_set);
int iSetLP_INTSET3_pcie_prt3_lp_req_int_set(unsigned int upcie_prt3_lp_req_int_set);
int iSetLP_READY_lp_ready(unsigned int ulp_ready);
int iSetPERSTN_INT_STATUS_perstn_int_status(unsigned int uperstn_int_status);
int iSetPERSTN_INT_EN_perstn_int_en(unsigned int uperstn_int_en);
int iSetPERSTN_INT_SET_perstn_int_set(unsigned int uperstn_int_set);
int iSetPERSTN_INT_RAW_STATUS_perstn_int_raw_status(unsigned int uperstn_int_raw_status);
int iSetUP_UNCRT_EN_up_uncrt_en(unsigned int uup_uncrt_en);
int iSetAXI_BRESP_MON_axi_bresp_stats(unsigned int uaxi_bresp_stats);
int iSetAXI_BRESP_MON_axi_bresp_clr(unsigned int uaxi_bresp_clr);
int iSetAXI_RRESP_MON_axi_rresp_stats(unsigned int uaxi_rresp_stats);
int iSetAXI_RRESP_MON_axi_rresp_clr(unsigned int uaxi_rresp_clr);
int iSetAXI_RESP_MASK_axi_rsp_mask_en(unsigned int uaxi_rsp_mask_en);
int iSetAXI_RESP_MASK_hiss_axi_rsp_mask_en(unsigned int uhiss_axi_rsp_mask_en);
int iSetPERSTN_STATUS_perstn_status(unsigned int uperstn_status);
int iSetPERSTN_HISS_INT_STATUS_perstn_hiss_int_status(unsigned int uperstn_hiss_int_status);
int iSetPERSTN_HISS_INT_EN_perstn_hiss_int_en(unsigned int uperstn_hiss_int_en);
int iSetAXI4TOAXI3_BYPASS_sc_axi4toaxi3_byapss(unsigned int usc_axi4toaxi3_byapss);
int iSetAXI4TOAXI3_STATUS_sc_axi4toaxi3_fifo_empty(unsigned int usc_axi4toaxi3_fifo_empty);
int iSetAXI4TOAXI3_STATUS_sc_axi4toaxi3_fifo_full(unsigned int usc_axi4toaxi3_fifo_full);
int iSetAXI4TOAXI3_STATUS_sc_axi4toaxi3_aw_err(unsigned int usc_axi4toaxi3_aw_err);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_addr_10bit(unsigned int usmb_debug_addr_10bit);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_slaver_act(unsigned int usmb_debug_slaver_act);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_master_act(unsigned int usmb_debug_master_act);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_hs(unsigned int usmb_debug_hs);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_wr(unsigned int usmb_debug_wr);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_rd(unsigned int usmb_debug_rd);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_addr(unsigned int usmb_debug_addr);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_adata(unsigned int usmb_debug_adata);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_p_gen(unsigned int usmb_debug_p_gen);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_s_gen(unsigned int usmb_debug_s_gen);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_slv_cstate(unsigned int usmb_debug_slv_cstate);
int iSetSMB_DW_APB_I2C_DEBUG_smb_debug_mst_cstate(unsigned int usmb_debug_mst_cstate);
int iSetA55_FCM_CLUSTER_CONFIG0_a55_sc_sercure_debug_en(unsigned int ua55_sc_sercure_debug_en);
int iSetA55_FCM_CLUSTER_CONFIG0_a55_sc_stretch_l2ramclk_en(unsigned int ua55_sc_stretch_l2ramclk_en);
int iSetA55_FCM_CLUSTER_CONFIG1_a55_aa64naa32(unsigned int ua55_aa64naa32);
int iSetA55_FCM_CLUSTER_CONFIG1_a55_cfgend(unsigned int ua55_cfgend);
int iSetA55_FCM_CLUSTER_CONFIG1_a55_cfgte(unsigned int ua55_cfgte);
int iSetA55_FCM_CLUSTER_CONFIG1_a55_clusteridaff2(unsigned int ua55_clusteridaff2);
int iSetA55_FCM_CLUSTER_CONFIG1_a55_clusteridaff3(unsigned int ua55_clusteridaff3);
int iSetA55_FCM_CLUSTER_CONFIG1_a55_giccdisable(unsigned int ua55_giccdisable);
int iSetA55_FCM_CLUSTER_CONFIG1_a55_vinithi(unsigned int ua55_vinithi);
int iSetA55_FCM_CLUSTER_CONFIG1_nfiq(unsigned int unfiq);
int iSetA55_FCM_CLUSTER_CONFIG1_nirq(unsigned int unirq);
int iSetA55_RVBARADDRY_CFG_L_a55_rvbaraddry_l(unsigned int ua55_rvbaraddry_l);
int iSetA55_RVBARADDRY_CFG_H_a55_rvbaraddry_h(unsigned int ua55_rvbaraddry_h);
int iSetA55_BROADCAST_CFG_a55_broadcastcachemaint(unsigned int ua55_broadcastcachemaint);
int iSetA55_BROADCAST_CFG_a55_broadcastcachemaintpou(unsigned int ua55_broadcastcachemaintpou);
int iSetA55_BROADCAST_CFG_a55_broadcastpersist(unsigned int ua55_broadcastpersist);
int iSetA55_BROADCAST_CFG_a55_broadcastouter(unsigned int ua55_broadcastouter);
int iSetA55_DEBUG_CFG_a55_dbgen(unsigned int ua55_dbgen);
int iSetA55_DEBUG_CFG_a55_niden(unsigned int ua55_niden);
int iSetA55_DEBUG_CFG_a55_spiden(unsigned int ua55_spiden);
int iSetA55_DEBUG_CFG_a55_spniden(unsigned int ua55_spniden);
int iSetA55_DEBUG_CFG_a55_dbgconnected(unsigned int ua55_dbgconnected);
int iSetA55_FCM_CLUSTER_STATUS_a55_custom_wfi(unsigned int ua55_custom_wfi);
int iSetA55_FCM_CLUSTER_STATUS_a55_custom_wfe(unsigned int ua55_custom_wfe);
int iSetA55_FCM_CLUSTER_STATUS_a55_sc_pmccnt_q63bit(unsigned int ua55_sc_pmccnt_q63bit);
int iSetA55_FCM_CLUSTER_STATUS_a55_sc_gic_irq(unsigned int ua55_sc_gic_irq);
int iSetA55_FCM_CLUSTER_STATUS_a55_sc_gic_fiq(unsigned int ua55_sc_gic_fiq);
int iSetA55_FCM_CLUSTER_STATUS_a55_sc_dbg_ack(unsigned int ua55_sc_dbg_ack);
int iSetA55_FCM_CLUSTER_STATUS_reg_clusterpmccntr_63bit(unsigned int ureg_clusterpmccntr_63bit);
int iSetA55_PMU_STATUS_a55_coreinstrret(unsigned int ua55_coreinstrret);
int iSetA55_PMU_STATUS_a55_coreinstrrun(unsigned int ua55_coreinstrrun);
int iSetDBG_BLOCK_STATUS_dbg_block_dbgpwrupreq(unsigned int udbg_block_dbgpwrupreq);
int iSetDBG_BLOCK_STATUS_dbg_block_clusterdbgpwrupreq(unsigned int udbg_block_clusterdbgpwrupreq);
int iSetGIC600_CFG_gic600_sample_req_gic(unsigned int ugic600_sample_req_gic);
int iSetGIC600_CFG_gic600_gict_allow_ns(unsigned int ugic600_gict_allow_ns);
int iSetGIC600_CFG_gic600_gicp_allow_ns(unsigned int ugic600_gicp_allow_ns);
int iSetGIC600_CFG_gic600_cpu_active(unsigned int ugic600_cpu_active);
int iSetGIC600_STATUS_gic600_sample_ack_gic(unsigned int ugic600_sample_ack_gic);
int iSetCRG_CLK_DIV_SEL_aclkm_div_sel(unsigned int uaclkm_div_sel);
int iSetCRG_CLK_DIV_SEL_aclks_div_sel(unsigned int uaclks_div_sel);
int iSetCRG_CLK_DIV_SEL_aclkmp_div_sel(unsigned int uaclkmp_div_sel);
int iSetCRG_CLK_DIV_SEL_periphclk_div_sel(unsigned int uperiphclk_div_sel);
int iSetCRG_CLK_DIV_SEL_pclk_div_sel(unsigned int upclk_div_sel);
int iSetCRG_CLK_DIV_SEL_atclk_div_sel(unsigned int uatclk_div_sel);
int iSetCRG_CLKOFF_clkoff_coreclk(unsigned int uclkoff_coreclk);
int iSetCRG_CLKOFF_clkoff_periphclk(unsigned int uclkoff_periphclk);
int iSetCRG_CLKOFF_clkoff_sclk(unsigned int uclkoff_sclk);
int iSetCRG_CLKOFF_clkoff_atclk(unsigned int uclkoff_atclk);
int iSetCRG_CLKOFF_clkoff_pclk(unsigned int uclkoff_pclk);
int iSetCRG_CLKOFF_clkoff_aclkmp(unsigned int uclkoff_aclkmp);
int iSetCRG_CLKOFF_clkoff_aclks(unsigned int uclkoff_aclks);
int iSetCRG_CLKOFF_clkoff_alckm(unsigned int uclkoff_alckm);
int iSetCRG_CLKOFF_clkoff_swclktck(unsigned int uclkoff_swclktck);
int iSetCRG_CLKOFF_clkoff_hpm(unsigned int uclkoff_hpm);
int iSetCRG_SRST_srst_req_napbreset(unsigned int usrst_req_napbreset);
int iSetCRG_SRST_srst_req_ncpucorereset(unsigned int usrst_req_ncpucorereset);
int iSetCRG_SRST_srst_req_ncorereset(unsigned int usrst_req_ncorereset);
int iSetCRG_SRST_srst_req_npreset(unsigned int usrst_req_npreset);
int iSetCRG_SRST_srst_req_nsporeset(unsigned int usrst_req_nsporeset);
int iSetCRG_SRST_srst_req_nsreset(unsigned int usrst_req_nsreset);
int iSetCRG_SRST_srst_req_natreset(unsigned int usrst_req_natreset);
int iSetCRG_SRST_srst_req_ngicreset(unsigned int usrst_req_ngicreset);
int iSetCRG_SRST_srst_req_nperiphreset(unsigned int usrst_req_nperiphreset);
int iSetCRG_SRST_srst_req_ndapreset(unsigned int usrst_req_ndapreset);
int iSetCRG_SRST_srst_req_nmstreset(unsigned int usrst_req_nmstreset);
int iSetCRG_SRST_srst_req_nppreset(unsigned int usrst_req_nppreset);
int iSetCRG_SRST_srst_req_ndbgppreset(unsigned int usrst_req_ndbgppreset);
int iSetSPI_SSP_SEL_spi_ssp_sel(unsigned int uspi_ssp_sel);
int iSetA55_CORE_PCHL_STAT_corepactive(unsigned int ucorepactive);
int iSetA55_CORE_PCHL_STAT_corepaccept(unsigned int ucorepaccept);
int iSetA55_CORE_PCHL_STAT_corepdeny(unsigned int ucorepdeny);
int iSetA55_CORE_PCHL_REQ_corepstate(unsigned int ucorepstate);
int iSetA55_CORE_PCHL_REQ_corepreq(unsigned int ucorepreq);
int iSetA55_CLUSTER_PCHL_STAT_clusterpactive(unsigned int uclusterpactive);
int iSetA55_CLUSTER_PCHL_STAT_clusterpaccept(unsigned int uclusterpaccept);
int iSetA55_CLUSTER_PCHL_STAT_clusterpdeny(unsigned int uclusterpdeny);
int iSetA55_CLUSTER_PCHL_REQ_clusterpstate(unsigned int uclusterpstate);
int iSetA55_CLUSTER_PCHL_REQ_clusterpreq(unsigned int uclusterpreq);
int iSetSC_MPU_MAP_ADDR0_mpu_map_addr0(unsigned int umpu_map_addr0);
int iSetSC_MPU_MAP_ADDR1_mpu_map_addr1(unsigned int umpu_map_addr1);
int iSetSC_MPU_MAP_ADDR2_mpu_map_addr2(unsigned int umpu_map_addr2);
int iSetSC_MPU_MAP_ADDR3_mpu_map_addr3(unsigned int umpu_map_addr3);
int iSetSC_MPU_MAP_ADDR4_mpu_map_addr4(unsigned int umpu_map_addr4);
int iSetSC_MPU_MAP_ADDR5_mpu_map_addr5(unsigned int umpu_map_addr5);
int iSetSC_MPU_MAP_ADDR6_mpu_map_addr6(unsigned int umpu_map_addr6);
int iSetSC_MPU_MAP_ADDR7_mpu_map_addr7(unsigned int umpu_map_addr7);
int iSetSC_MPU_MAP_ADDR8_mpu_map_addr8(unsigned int umpu_map_addr8);
int iSetSC_MPU_MAP_ADDR9_mpu_map_addr9(unsigned int umpu_map_addr9);
int iSetSC_MPU_MAP_ADDR10_mpu_map_addr10(unsigned int umpu_map_addr10);
int iSetSC_MPU_MAP_ADDR11_mpu_map_addr11(unsigned int umpu_map_addr11);
int iSetSC_MPU_MAP_ADDR12_mpu_map_addr12(unsigned int umpu_map_addr12);
int iSetSC_MPU_MAP_ADDR13_mpu_map_addr13(unsigned int umpu_map_addr13);
int iSetSC_MPU_MAP_ADDR14_mpu_map_addr14(unsigned int umpu_map_addr14);
int iSetSC_MPU_MAP_ADDR15_mpu_map_addr15(unsigned int umpu_map_addr15);
int iSetSC_SPU_AXUSER_NO_CTRL_awuser_no_spu(unsigned int uawuser_no_spu);
int iSetSC_SPU_AXUSER_NO_CTRL_aruser_no_spu(unsigned int uaruser_no_spu);
int iSetSC_SPU_AXUSER_NO_CTRL_awuser_no_sel_spu(unsigned int uawuser_no_sel_spu);
int iSetSC_SPU_AXUSER_NO_CTRL_aruser_no_sel_spu(unsigned int uaruser_no_sel_spu);
int iSetSC_MPU_AXUSER_31_0_mpu_axuser_31_0(unsigned int umpu_axuser_31_0);
int iSetSC_MPU_AXUSER_63_32_mpu_axuser_63_32(unsigned int umpu_axuser_63_32);
int iSetSC_MPU_AXUSER_mpu_axuser_67_64(unsigned int umpu_axuser_67_64);
int iSetSC_MPU_AXUSER_mpu_axqos(unsigned int umpu_axqos);
int iSetSC_MPU_AXUSER_mpu_wuser(unsigned int umpu_wuser);
int iSetSC_MPU_AXUSER_NS_mpu_axuser_38(unsigned int umpu_axuser_38);
int iSetSC_MPU_AXUSER_NS_CTRL_mpu_axuser_ns_mux(unsigned int umpu_axuser_ns_mux);
int iSetSC_MPU_AXUSER_NS_CTRL_a55_axprot_ctrl(unsigned int ua55_axprot_ctrl);
int iSetSC_MPU_LPBX_CTRL_spu_exception_req(unsigned int uspu_exception_req);
int iSetSC_MPU_LPBX_CTRL_spu_lpbx_mode(unsigned int uspu_lpbx_mode);
int iSetSC_MPU_LPBX_CTRL_spu_exception_ack(unsigned int uspu_exception_ack);
int iSetSC_MPU_LPBX_CTRL_spu_exception_active(unsigned int uspu_exception_active);
int iSetSC_MPU_LPBX_CTRL_spu_ruser_src_sel(unsigned int uspu_ruser_src_sel);
int iSetA55_TO_R52_INT_STATUS_a55_to_r52_int_status(unsigned int ua55_to_r52_int_status);
int iSetA55_TO_R52_INT_EN_a55_to_r52_int_en(unsigned int ua55_to_r52_int_en);
int iSetA55_TO_R52_INT_SET_a55_to_r52_int_set(unsigned int ua55_to_r52_int_set);
int iSetR52_TO_A55_INT_STATUS_r52_to_a55_int_status(unsigned int ur52_to_a55_int_status);
int iSetR52_TO_A55_INT_EN_r52_to_a55_int_en(unsigned int ur52_to_a55_int_en);
int iSetR52_TO_A552_INT_SET_r52_to_a55_int_set(unsigned int ur52_to_a55_int_set);
int iSetA55_R52_INT_SEL_hiss_uart_int_en(unsigned int uhiss_uart_int_en);
int iSetA55_R52_INT_SEL_mpu_uart_int_en(unsigned int umpu_uart_int_en);
int iSetA55_R52_INT_SEL_hiss_djtagm_int_en(unsigned int uhiss_djtagm_int_en);
int iSetA55_R52_INT_SEL_mpu_djtagm_int_en(unsigned int umpu_djtagm_int_en);
int iSetCPI_MPU_LPBX_CTRL_cpi_exception_req(unsigned int ucpi_exception_req);
int iSetCPI_MPU_LPBX_CTRL_cpi_lpbx_mode(unsigned int ucpi_lpbx_mode);
int iSetCPI_MPU_LPBX_CTRL_cpi_exception_ack(unsigned int ucpi_exception_ack);
int iSetCPI_MPU_LPBX_CTRL_cpi_exception_active(unsigned int ucpi_exception_active);
int iSetRING2AXI_MPU_LPBX_CTRL_ring2axi_exception_req(unsigned int uring2axi_exception_req);
int iSetRING2AXI_MPU_LPBX_CTRL_ring2axi_lpbx_mode(unsigned int uring2axi_lpbx_mode);
int iSetRING2AXI_MPU_LPBX_CTRL_ring2axi_exception_ack(unsigned int uring2axi_exception_ack);
int iSetRING2AXI_MPU_LPBX_CTRL_ring2axi_exception_active(unsigned int uring2axi_exception_active);
int iSetCRG_WDG_CTRL_wdg_en(unsigned int uwdg_en);
int iSetCRG_WDG_CNT_CONFIG_wdg_cnt_cfg(unsigned int uwdg_cnt_cfg);
int iSetCRG_WDG_FEED_wdg_feed(unsigned int uwdg_feed);
int iSetWDG_INT_STATUS_wdg_int_status(unsigned int uwdg_int_status);
int iSetWDG_INT_EN_wdg_int_en(unsigned int uwdg_int_en);
int iSetWDG_INT_SET_wdg_int_set(unsigned int uwdg_int_set);
int iSetWDG_INT_RAW_STATUS_wdg_int_raw_status(unsigned int uwdg_int_raw_status);
int iSetHISS_UNC_INT_STATUS_hiss_rom_mecc_int_status(unsigned int uhiss_rom_mecc_int_status);
int iSetHISS_UNC_INT_STATUS_hiss_r52_int_status(unsigned int uhiss_r52_int_status);
int iSetHISS_UNC_INT_STATUS_hiss_wdg_int_status(unsigned int uhiss_wdg_int_status);
int iSetHISS_UNC_INT_EN_hiss_rom_mecc_int_en(unsigned int uhiss_rom_mecc_int_en);
int iSetHISS_UNC_INT_EN_hiss_r52_int_en(unsigned int uhiss_r52_int_en);
int iSetHISS_UNC_INT_EN_hiss_wdg_int_en(unsigned int uhiss_wdg_int_en);
int iSetHISS_UNC_INT_EN_hiss_rom_mecc_unc_en(unsigned int uhiss_rom_mecc_unc_en);
int iSetHISS_UNC_INT_EN_hiss_r52_unc_en(unsigned int uhiss_r52_unc_en);
int iSetHISS_UNC_INT_EN_hiss_wdg_unc_en(unsigned int uhiss_wdg_unc_en);
int iSetHISS_UNC_INT_SET_hiss_rom_mecc_int_set(unsigned int uhiss_rom_mecc_int_set);
int iSetHISS_UNC_INT_SET_hiss_r52_int_set(unsigned int uhiss_r52_int_set);
int iSetHISS_UNC_INT_SET_hiss_wdg_int_set(unsigned int uhiss_wdg_int_set);
int iSetHISS_UNC_INT_RAW_STATUS_hiss_rom_mecc_int_raw_status(unsigned int uhiss_rom_mecc_int_raw_status);
int iSetHISS_UNC_INT_RAW_STATUS_hiss_r52_int_raw_status(unsigned int uhiss_r52_int_raw_status);
int iSetHISS_UNC_INT_RAW_STATUS_hiss_wdg_int_raw_status(unsigned int uhiss_wdg_int_raw_status);

/* Define the union csr_c2j_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_0 : 1;           /* [0] */
        u32 jtag_ir_size : 5;    /* [5:1] */
        u32 jtag_ir_tail : 1;    /* [6] */
        u32 jtag_ir_tail_wr : 1; /* [7] */
        u32 rsv_1 : 1;           /* [8] */
        u32 jtag_dr_size : 5;    /* [13:9] */
        u32 jtag_dr_tail : 1;    /* [14] */
        u32 jtag_dr_tail_wr : 1; /* [15] */
        u32 jtag_enable : 1;     /* [16] */
        u32 rsv_2 : 3;           /* [19:17] */
        u32 jtag_clk_factor : 4; /* [23:20] */
        u32 rsv_3 : 8;           /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_c2j_ctrl_u;

/* Define the union csr_c2j_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ir_done : 1;           /* [0] */
        u32 dr_done : 1;           /* [1] */
        u32 shift_done_master : 1; /* [2] */
        u32 data_out_wr : 1;       /* [3] */
        u32 rsv_4 : 28;            /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_c2j_status_u;

/* Define the union csr_c2j_datain_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 c2j_datain : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_c2j_datain_u;

/* Define the union csr_c2j_dataout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 c2j_dataout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_c2j_dataout_u;

/* Define the union csr_c2j_dr_start_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 jtag_dr_start : 1; /* [0] */
        u32 rsv_5 : 31;        /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_c2j_dr_start_u;

/* Define the union csr_c2j_ir_start_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 jtag_ir_start : 1; /* [0] */
        u32 rsv_6 : 31;        /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_c2j_ir_start_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_c2j_ctrl_u c2j_ctrl;         /* 0 */
    volatile csr_c2j_status_u c2j_status;     /* 4 */
    volatile csr_c2j_datain_u c2j_datain;     /* 8 */
    volatile csr_c2j_dataout_u c2j_dataout;   /* C */
    volatile csr_c2j_dr_start_u c2j_dr_start; /* 10 */
    volatile csr_c2j_ir_start_u c2j_ir_start; /* 14 */
} S_c2j_REGS_TYPE;

/* Declare the struct pointor of the module c2j */
extern volatile S_c2j_REGS_TYPE *gopc2jAllReg;

/* Declare the functions that set the member value */
int iSetC2J_CTRL_jtag_ir_size(unsigned int ujtag_ir_size);
int iSetC2J_CTRL_jtag_ir_tail(unsigned int ujtag_ir_tail);
int iSetC2J_CTRL_jtag_ir_tail_wr(unsigned int ujtag_ir_tail_wr);
int iSetC2J_CTRL_jtag_dr_size(unsigned int ujtag_dr_size);
int iSetC2J_CTRL_jtag_dr_tail(unsigned int ujtag_dr_tail);
int iSetC2J_CTRL_jtag_dr_tail_wr(unsigned int ujtag_dr_tail_wr);
int iSetC2J_CTRL_jtag_enable(unsigned int ujtag_enable);
int iSetC2J_CTRL_jtag_clk_factor(unsigned int ujtag_clk_factor);
int iSetC2J_STATUS_ir_done(unsigned int uir_done);
int iSetC2J_STATUS_dr_done(unsigned int udr_done);
int iSetC2J_STATUS_shift_done_master(unsigned int ushift_done_master);
int iSetC2J_STATUS_data_out_wr(unsigned int udata_out_wr);
int iSetC2J_DATAIN_c2j_datain(unsigned int uc2j_datain);
int iSetC2J_DATAOUT_c2j_dataout(unsigned int uc2j_dataout);
int iSetC2J_DR_START_jtag_dr_start(unsigned int ujtag_dr_start);
int iSetC2J_IR_START_jtag_ir_start(unsigned int ujtag_ir_start);

/* Define the union csr_mdio_command_reg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mdio_devad : 5; /* [4:0] */
        u32 mdio_prtad : 5; /* [9:5] */
        u32 mdio_op : 2;    /* [11:10] */
        u32 mdio_st : 2;    /* [13:12] */
        u32 mdio_start : 1; /* [14] */
        u32 rsv_0 : 17;     /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mdio_command_reg_u;

/* Define the union csr_mdio_addr_reg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mdio_address : 16; /* [15:0] */
        u32 rsv_1 : 16;        /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mdio_addr_reg_u;

/* Define the union csr_mdio_wdata_reg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mdio_wdata : 16; /* [15:0] */
        u32 rsv_2 : 16;      /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mdio_wdata_reg_u;

/* Define the union csr_mdio_rdata_reg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mdio_rdata : 16; /* [15:0] */
        u32 rsv_3 : 16;      /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mdio_rdata_reg_u;

/* Define the union csr_mdio_sta_reg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mdio_sta : 1; /* [0] */
        u32 rsv_4 : 31;   /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mdio_sta_reg_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_mdio_command_reg_u mdio_command_reg; /* 0 */
    volatile csr_mdio_addr_reg_u mdio_addr_reg;       /* 4 */
    volatile csr_mdio_wdata_reg_u mdio_wdata_reg;     /* 8 */
    volatile csr_mdio_rdata_reg_u mdio_rdata_reg;     /* C */
    volatile csr_mdio_sta_reg_u mdio_sta_reg;         /* 10 */
} S_mdio_0_REGS_TYPE;

/* Declare the struct pointor of the module mdio_0 */
extern volatile S_mdio_0_REGS_TYPE *gopmdio_0AllReg;

/* Declare the functions that set the member value */
int iSetMDIO_COMMAND_REG_mdio_devad(unsigned int umdio_devad);
int iSetMDIO_COMMAND_REG_mdio_prtad(unsigned int umdio_prtad);
int iSetMDIO_COMMAND_REG_mdio_op(unsigned int umdio_op);
int iSetMDIO_COMMAND_REG_mdio_st(unsigned int umdio_st);
int iSetMDIO_COMMAND_REG_mdio_start(unsigned int umdio_start);
int iSetMDIO_ADDR_REG_mdio_address(unsigned int umdio_address);
int iSetMDIO_WDATA_REG_mdio_wdata(unsigned int umdio_wdata);
int iSetMDIO_RDATA_REG_mdio_rdata(unsigned int umdio_rdata);
int iSetMDIO_STA_REG_mdio_sta(unsigned int umdio_sta);

/* Define the union csr_i2c_con_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 master : 1;               /* [0] */
        u32 speed : 2;                /* [2:1] */
        u32 slave_10bit : 1;          /* [3] */
        u32 master_10bit_rd_only : 1; /* [4] */
        u32 restart_en : 1;           /* [5] */
        u32 slave_disable : 1;        /* [6] */
        u32 rsv_0 : 25;               /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_con_u;

/* Define the union csr_i2c_tar_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_tar : 10;      /* [9:0] */
        u32 gc_or_start : 1;  /* [10] */
        u32 special : 1;      /* [11] */
        u32 master_10bit : 1; /* [12] */
        u32 rsv_1 : 19;       /* [31:13] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_tar_u;

/* Define the union csr_i2c_sar_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_sar : 10; /* [9:0] */
        u32 rsv_2 : 22;   /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_sar_u;

/* Define the union csr_i2c_hs_maddr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_hs_mar : 3; /* [2:0] */
        u32 rsv_3 : 29;     /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_hs_maddr_u;

/* Define the union csr_i2c_data_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dat : 8;    /* [7:0] */
        u32 cmd : 1;    /* [8] */
        u32 rsv_4 : 23; /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_data_cmd_u;

/* Define the union csr_i2c_ss_scl_hcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ss_scl_hcnt : 16; /* [15:0] */
        u32 rsv_5 : 16;       /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_ss_scl_hcnt_u;

/* Define the union csr_i2c_ss_scl_lcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ss_scl_lcnt : 16; /* [15:0] */
        u32 rsv_6 : 16;       /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_ss_scl_lcnt_u;

/* Define the union csr_i2c_fs_scl_hcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fs_scl_hcnt : 16; /* [15:0] */
        u32 rsv_7 : 16;       /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_fs_scl_hcnt_u;

/* Define the union csr_i2c_fs_scl_lcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fs_scl_lcnt : 16; /* [15:0] */
        u32 rsv_8 : 16;       /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_fs_scl_lcnt_u;

/* Define the union csr_i2c_hs_scl_hcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hs_scl_hcnt : 16; /* [15:0] */
        u32 rsv_9 : 16;       /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_hs_scl_hcnt_u;

/* Define the union csr_i2c_hs_scl_lcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 hs_scl_lcnt : 16; /* [15:0] */
        u32 rsv_10 : 16;      /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_hs_scl_lcnt_u;

/* Define the union csr_i2c_intr_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 r_rx_under : 1;  /* [0] */
        u32 r_rx_over : 1;   /* [1] */
        u32 r_rx_full : 1;   /* [2] */
        u32 r_tx_over : 1;   /* [3] */
        u32 r_tx_empty : 1;  /* [4] */
        u32 r_rd_req : 1;    /* [5] */
        u32 r_tx_abrt : 1;   /* [6] */
        u32 r_rx_done : 1;   /* [7] */
        u32 r_activity : 1;  /* [8] */
        u32 r_stop_det : 1;  /* [9] */
        u32 r_start_det : 1; /* [10] */
        u32 r_gen_call : 1;  /* [11] */
        u32 rsv_11 : 20;     /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_intr_stat_u;

/* Define the union csr_i2c_intr_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 m_rx_under : 1;  /* [0] */
        u32 m_rx_over : 1;   /* [1] */
        u32 m_rx_full : 1;   /* [2] */
        u32 m_tx_over : 1;   /* [3] */
        u32 m_tx_empty : 1;  /* [4] */
        u32 m_rd_req : 1;    /* [5] */
        u32 m_tx_abrt : 1;   /* [6] */
        u32 m_rx_done : 1;   /* [7] */
        u32 m_activity : 1;  /* [8] */
        u32 m_stop_det : 1;  /* [9] */
        u32 m_start_det : 1; /* [10] */
        u32 m_gen_call : 1;  /* [11] */
        u32 rsv_12 : 20;     /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_intr_mask_u;

/* Define the union csr_i2c_raw_intr_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_under : 1;  /* [0] */
        u32 rx_over : 1;   /* [1] */
        u32 rx_full : 1;   /* [2] */
        u32 tx_over : 1;   /* [3] */
        u32 tx_empty : 1;  /* [4] */
        u32 rd_req : 1;    /* [5] */
        u32 tx_abrt : 1;   /* [6] */
        u32 rx_done : 1;   /* [7] */
        u32 activity : 1;  /* [8] */
        u32 stop_det : 1;  /* [9] */
        u32 start_det : 1; /* [10] */
        u32 gen_call : 1;  /* [11] */
        u32 rsv_13 : 20;   /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_raw_intr_stat_u;

/* Define the union csr_i2c_rx_tl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_tl : 8;   /* [7:0] */
        u32 rsv_14 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_rx_tl_u;

/* Define the union csr_i2c_tx_tl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_tl : 8;   /* [7:0] */
        u32 rsv_15 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_tx_tl_u;

/* Define the union csr_i2c_clr_intr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_intr : 1; /* [0] */
        u32 rsv_16 : 31;  /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_intr_u;

/* Define the union csr_i2c_clr_rx_under_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_rx_under : 1; /* [0] */
        u32 rsv_17 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_rx_under_u;

/* Define the union csr_i2c_clr_rx_over_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_rx_over : 1; /* [0] */
        u32 rsv_18 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_rx_over_u;

/* Define the union csr_i2c_clr_tx_over_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_tx_over : 1; /* [0] */
        u32 rsv_19 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_tx_over_u;

/* Define the union csr_i2c_clr_rd_req_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_rd_req : 1; /* [0] */
        u32 rsv_20 : 31;    /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_rd_req_u;

/* Define the union csr_i2c_clr_tx_abrt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_tx_abrt : 1; /* [0] */
        u32 rsv_21 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_tx_abrt_u;

/* Define the union csr_i2c_clr_rx_done_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_rx_done : 1; /* [0] */
        u32 rsv_22 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_rx_done_u;

/* Define the union csr_i2c_clr_activity_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_activity : 1; /* [0] */
        u32 rsv_23 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_activity_u;

/* Define the union csr_i2c_clr_stop_det_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_stop_det : 1; /* [0] */
        u32 rsv_24 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_stop_det_u;

/* Define the union csr_i2c_clr_start_det_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_start_det : 1; /* [0] */
        u32 rsv_25 : 31;       /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_start_det_u;

/* Define the union csr_i2c_clr_gen_call_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_gen_call : 1; /* [0] */
        u32 rsv_26 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_clr_gen_call_u;

/* Define the union csr_i2c_enable_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 enable : 1;  /* [0] */
        u32 rsv_27 : 31; /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_enable_u;

/* Define the union csr_i2c_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 activity : 1;     /* [0] */
        u32 tfnf : 1;         /* [1] */
        u32 tfe : 1;          /* [2] */
        u32 rfne : 1;         /* [3] */
        u32 rff : 1;          /* [4] */
        u32 mst_activity : 1; /* [5] */
        u32 slv_activity : 1; /* [6] */
        u32 rsv_28 : 25;      /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_status_u;

/* Define the union csr_i2c_txflr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txflr : 4;   /* [3:0] */
        u32 rsv_29 : 28; /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_txflr_u;

/* Define the union csr_i2c_rxflr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rxflr : 4;   /* [3:0] */
        u32 rsv_30 : 28; /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_rxflr_u;

/* Define the union csr_i2c_sda_hold_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_sda_hold : 16; /* [15:0] */
        u32 rsv_31 : 16;      /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_sda_hold_u;

/* Define the union csr_i2c_tx_abrt_source_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 abrt_7b_addr_noack : 1;   /* [0] */
        u32 abrt_10addr1_noack : 1;   /* [1] */
        u32 abrt_10addr2_noack : 1;   /* [2] */
        u32 abrt_txdata_noack : 1;    /* [3] */
        u32 abrt_gcall_noack : 1;     /* [4] */
        u32 abrt_gcall_read : 1;      /* [5] */
        u32 abrt_hs_ackdet : 1;       /* [6] */
        u32 abrt_sbyte_ackdet : 1;    /* [7] */
        u32 abrt_hs_norstrt : 1;      /* [8] */
        u32 abrt_sbyte_norstrt : 1;   /* [9] */
        u32 abrt_10b_rd_norstrt : 1;  /* [10] */
        u32 arb_master_dis : 1;       /* [11] */
        u32 arb_lost : 1;             /* [12] */
        u32 abrt_slvflush_txfifo : 1; /* [13] */
        u32 abrt_slv_arblost : 1;     /* [14] */
        u32 abrt_slvrd_intx : 1;      /* [15] */
        u32 rsv_32 : 16;              /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_tx_abrt_source_u;

/* Define the union csr_i2c_slv_data_nack_only_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 nack : 1;    /* [0] */
        u32 rsv_33 : 31; /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_slv_data_nack_only_u;

/* Define the union csr_i2c_dma_cr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rdmae : 1;   /* [0] */
        u32 tdmae : 1;   /* [1] */
        u32 rsv_34 : 30; /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_dma_cr_u;

/* Define the union csr_i2c_dma_tdlr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dma_tdlr : 4; /* [3:0] */
        u32 rsv_35 : 28;  /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_dma_tdlr_u;

/* Define the union csr_i2c_dma_rdlr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dma_rdlr : 4; /* [3:0] */
        u32 rsv_36 : 28;  /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_dma_rdlr_u;

/* Define the union csr_i2c_sda_setup_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sda_setup : 8; /* [7:0] */
        u32 rsv_37 : 24;   /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_sda_setup_u;

/* Define the union csr_i2c_ack_general_call_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ack_gen_call : 1; /* [0] */
        u32 rsv_38 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_ack_general_call_u;

/* Define the union csr_i2c_enable_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_en : 1;            /* [0] */
        u32 slv_rx_aborted : 1;   /* [1] */
        u32 slv_rx_data_lost : 1; /* [2] */
        u32 rsv_39 : 29;          /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_enable_status_u;

/* Define the union csr_i2c_comp_param_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 apb_data_width : 2;     /* [1:0] */
        u32 max_speed_mode : 2;     /* [3:2] */
        u32 hc_count_values : 1;    /* [4] */
        u32 intr_io : 1;            /* [5] */
        u32 has_dma : 1;            /* [6] */
        u32 add_encoded_params : 1; /* [7] */
        u32 rx_buffer_depth : 8;    /* [15:8] */
        u32 tx_buffer_depth : 8;    /* [23:16] */
        u32 rsv_40 : 8;             /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_comp_param_1_u;

/* Define the union csr_i2c_comp_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_comp_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_comp_version_u;

/* Define the union csr_i2c_comp_type_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_comp_type : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_i2c_comp_type_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_i2c_con_u i2c_con;                               /* 0 */
    volatile csr_i2c_tar_u i2c_tar;                               /* 4 */
    volatile csr_i2c_sar_u i2c_sar;                               /* 8 */
    volatile csr_i2c_hs_maddr_u i2c_hs_maddr;                     /* C */
    volatile csr_i2c_data_cmd_u i2c_data_cmd;                     /* 10 */
    volatile csr_i2c_ss_scl_hcnt_u i2c_ss_scl_hcnt;               /* 14 */
    volatile csr_i2c_ss_scl_lcnt_u i2c_ss_scl_lcnt;               /* 18 */
    volatile csr_i2c_fs_scl_hcnt_u i2c_fs_scl_hcnt;               /* 1C */
    volatile csr_i2c_fs_scl_lcnt_u i2c_fs_scl_lcnt;               /* 20 */
    volatile csr_i2c_hs_scl_hcnt_u i2c_hs_scl_hcnt;               /* 24 */
    volatile csr_i2c_hs_scl_lcnt_u i2c_hs_scl_lcnt;               /* 28 */
    volatile csr_i2c_intr_stat_u i2c_intr_stat;                   /* 2C */
    volatile csr_i2c_intr_mask_u i2c_intr_mask;                   /* 30 */
    volatile csr_i2c_raw_intr_stat_u i2c_raw_intr_stat;           /* 34 */
    volatile csr_i2c_rx_tl_u i2c_rx_tl;                           /* 38 */
    volatile csr_i2c_tx_tl_u i2c_tx_tl;                           /* 3C */
    volatile csr_i2c_clr_intr_u i2c_clr_intr;                     /* 40 */
    volatile csr_i2c_clr_rx_under_u i2c_clr_rx_under;             /* 44 */
    volatile csr_i2c_clr_rx_over_u i2c_clr_rx_over;               /* 48 */
    volatile csr_i2c_clr_tx_over_u i2c_clr_tx_over;               /* 4C */
    volatile csr_i2c_clr_rd_req_u i2c_clr_rd_req;                 /* 50 */
    volatile csr_i2c_clr_tx_abrt_u i2c_clr_tx_abrt;               /* 54 */
    volatile csr_i2c_clr_rx_done_u i2c_clr_rx_done;               /* 58 */
    volatile csr_i2c_clr_activity_u i2c_clr_activity;             /* 5C */
    volatile csr_i2c_clr_stop_det_u i2c_clr_stop_det;             /* 60 */
    volatile csr_i2c_clr_start_det_u i2c_clr_start_det;           /* 64 */
    volatile csr_i2c_clr_gen_call_u i2c_clr_gen_call;             /* 68 */
    volatile csr_i2c_enable_u i2c_enable;                         /* 6C */
    volatile csr_i2c_status_u i2c_status;                         /* 70 */
    volatile csr_i2c_txflr_u i2c_txflr;                           /* 74 */
    volatile csr_i2c_rxflr_u i2c_rxflr;                           /* 78 */
    volatile csr_i2c_sda_hold_u i2c_sda_hold;                     /* 7C */
    volatile csr_i2c_tx_abrt_source_u i2c_tx_abrt_source;         /* 80 */
    volatile csr_i2c_slv_data_nack_only_u i2c_slv_data_nack_only; /* 84 */
    volatile csr_i2c_dma_cr_u i2c_dma_cr;                         /* 88 */
    volatile csr_i2c_dma_tdlr_u i2c_dma_tdlr;                     /* 8C */
    volatile csr_i2c_dma_rdlr_u i2c_dma_rdlr;                     /* 90 */
    volatile csr_i2c_sda_setup_u i2c_sda_setup;                   /* 94 */
    volatile csr_i2c_ack_general_call_u i2c_ack_general_call;     /* 98 */
    volatile csr_i2c_enable_status_u i2c_enable_status;           /* 9C */
    volatile csr_i2c_comp_param_1_u i2c_comp_param_1;             /* F4 */
    volatile csr_i2c_comp_version_u i2c_comp_version;             /* F8 */
    volatile csr_i2c_comp_type_u i2c_comp_type;                   /* FC */
} S_i2c_0_REGS_TYPE;

/* Declare the struct pointor of the module i2c_0 */
extern volatile S_i2c_0_REGS_TYPE *gopi2c_0AllReg;

/* Declare the functions that set the member value */
int iSetI2C_CON_master(unsigned int umaster);
int iSetI2C_CON_speed(unsigned int uspeed);
int iSetI2C_CON_slave_10bit(unsigned int uslave_10bit);
int iSetI2C_CON_master_10bit_rd_only(unsigned int umaster_10bit_rd_only);
int iSetI2C_CON_restart_en(unsigned int urestart_en);
int iSetI2C_CON_slave_disable(unsigned int uslave_disable);
int iSetI2C_TAR_ic_tar(unsigned int uic_tar);
int iSetI2C_TAR_gc_or_start(unsigned int ugc_or_start);
int iSetI2C_TAR_special(unsigned int uspecial);
int iSetI2C_TAR_master_10bit(unsigned int umaster_10bit);
int iSetI2C_SAR_i2c_sar(unsigned int ui2c_sar);
int iSetI2C_HS_MADDR_i2c_hs_mar(unsigned int ui2c_hs_mar);
int iSetI2C_DATA_CMD_dat(unsigned int udat);
int iSetI2C_DATA_CMD_cmd(unsigned int ucmd);
int iSetI2C_SS_SCL_HCNT_ss_scl_hcnt(unsigned int uss_scl_hcnt);
int iSetI2C_SS_SCL_LCNT_ss_scl_lcnt(unsigned int uss_scl_lcnt);
int iSetI2C_FS_SCL_HCNT_fs_scl_hcnt(unsigned int ufs_scl_hcnt);
int iSetI2C_FS_SCL_LCNT_fs_scl_lcnt(unsigned int ufs_scl_lcnt);
int iSetI2C_HS_SCL_HCNT_hs_scl_hcnt(unsigned int uhs_scl_hcnt);
int iSetI2C_HS_SCL_LCNT_hs_scl_lcnt(unsigned int uhs_scl_lcnt);
int iSetI2C_INTR_STAT_r_rx_under(unsigned int ur_rx_under);
int iSetI2C_INTR_STAT_r_rx_over(unsigned int ur_rx_over);
int iSetI2C_INTR_STAT_r_rx_full(unsigned int ur_rx_full);
int iSetI2C_INTR_STAT_r_tx_over(unsigned int ur_tx_over);
int iSetI2C_INTR_STAT_r_tx_empty(unsigned int ur_tx_empty);
int iSetI2C_INTR_STAT_r_rd_req(unsigned int ur_rd_req);
int iSetI2C_INTR_STAT_r_tx_abrt(unsigned int ur_tx_abrt);
int iSetI2C_INTR_STAT_r_rx_done(unsigned int ur_rx_done);
int iSetI2C_INTR_STAT_r_activity(unsigned int ur_activity);
int iSetI2C_INTR_STAT_r_stop_det(unsigned int ur_stop_det);
int iSetI2C_INTR_STAT_r_start_det(unsigned int ur_start_det);
int iSetI2C_INTR_STAT_r_gen_call(unsigned int ur_gen_call);
int iSetI2C_INTR_MASK_m_rx_under(unsigned int um_rx_under);
int iSetI2C_INTR_MASK_m_rx_over(unsigned int um_rx_over);
int iSetI2C_INTR_MASK_m_rx_full(unsigned int um_rx_full);
int iSetI2C_INTR_MASK_m_tx_over(unsigned int um_tx_over);
int iSetI2C_INTR_MASK_m_tx_empty(unsigned int um_tx_empty);
int iSetI2C_INTR_MASK_m_rd_req(unsigned int um_rd_req);
int iSetI2C_INTR_MASK_m_tx_abrt(unsigned int um_tx_abrt);
int iSetI2C_INTR_MASK_m_rx_done(unsigned int um_rx_done);
int iSetI2C_INTR_MASK_m_activity(unsigned int um_activity);
int iSetI2C_INTR_MASK_m_stop_det(unsigned int um_stop_det);
int iSetI2C_INTR_MASK_m_start_det(unsigned int um_start_det);
int iSetI2C_INTR_MASK_m_gen_call(unsigned int um_gen_call);
int iSetI2C_RAW_INTR_STAT_rx_under(unsigned int urx_under);
int iSetI2C_RAW_INTR_STAT_rx_over(unsigned int urx_over);
int iSetI2C_RAW_INTR_STAT_rx_full(unsigned int urx_full);
int iSetI2C_RAW_INTR_STAT_tx_over(unsigned int utx_over);
int iSetI2C_RAW_INTR_STAT_tx_empty(unsigned int utx_empty);
int iSetI2C_RAW_INTR_STAT_rd_req(unsigned int urd_req);
int iSetI2C_RAW_INTR_STAT_tx_abrt(unsigned int utx_abrt);
int iSetI2C_RAW_INTR_STAT_rx_done(unsigned int urx_done);
int iSetI2C_RAW_INTR_STAT_activity(unsigned int uactivity);
int iSetI2C_RAW_INTR_STAT_stop_det(unsigned int ustop_det);
int iSetI2C_RAW_INTR_STAT_start_det(unsigned int ustart_det);
int iSetI2C_RAW_INTR_STAT_gen_call(unsigned int ugen_call);
int iSetI2C_RX_TL_rx_tl(unsigned int urx_tl);
int iSetI2C_TX_TL_tx_tl(unsigned int utx_tl);
int iSetI2C_CLR_INTR_clr_intr(unsigned int uclr_intr);
int iSetI2C_CLR_RX_UNDER_clr_rx_under(unsigned int uclr_rx_under);
int iSetI2C_CLR_RX_OVER_clr_rx_over(unsigned int uclr_rx_over);
int iSetI2C_CLR_TX_OVER_clr_tx_over(unsigned int uclr_tx_over);
int iSetI2C_CLR_RD_REQ_clr_rd_req(unsigned int uclr_rd_req);
int iSetI2C_CLR_TX_ABRT_clr_tx_abrt(unsigned int uclr_tx_abrt);
int iSetI2C_CLR_RX_DONE_clr_rx_done(unsigned int uclr_rx_done);
int iSetI2C_CLR_ACTIVITY_clr_activity(unsigned int uclr_activity);
int iSetI2C_CLR_STOP_DET_clr_stop_det(unsigned int uclr_stop_det);
int iSetI2C_CLR_START_DET_clr_start_det(unsigned int uclr_start_det);
int iSetI2C_CLR_GEN_CALL_clr_gen_call(unsigned int uclr_gen_call);
int iSetI2C_ENABLE_enable(unsigned int uenable);
int iSetI2C_STATUS_activity(unsigned int uactivity);
int iSetI2C_STATUS_tfnf(unsigned int utfnf);
int iSetI2C_STATUS_tfe(unsigned int utfe);
int iSetI2C_STATUS_rfne(unsigned int urfne);
int iSetI2C_STATUS_rff(unsigned int urff);
int iSetI2C_STATUS_mst_activity(unsigned int umst_activity);
int iSetI2C_STATUS_slv_activity(unsigned int uslv_activity);
int iSetI2C_TXFLR_txflr(unsigned int utxflr);
int iSetI2C_RXFLR_rxflr(unsigned int urxflr);
int iSetI2C_SDA_HOLD_ic_sda_hold(unsigned int uic_sda_hold);
int iSetI2C_TX_ABRT_SOURCE_abrt_7b_addr_noack(unsigned int uabrt_7b_addr_noack);
int iSetI2C_TX_ABRT_SOURCE_abrt_10addr1_noack(unsigned int uabrt_10addr1_noack);
int iSetI2C_TX_ABRT_SOURCE_abrt_10addr2_noack(unsigned int uabrt_10addr2_noack);
int iSetI2C_TX_ABRT_SOURCE_abrt_txdata_noack(unsigned int uabrt_txdata_noack);
int iSetI2C_TX_ABRT_SOURCE_abrt_gcall_noack(unsigned int uabrt_gcall_noack);
int iSetI2C_TX_ABRT_SOURCE_abrt_gcall_read(unsigned int uabrt_gcall_read);
int iSetI2C_TX_ABRT_SOURCE_abrt_hs_ackdet(unsigned int uabrt_hs_ackdet);
int iSetI2C_TX_ABRT_SOURCE_abrt_sbyte_ackdet(unsigned int uabrt_sbyte_ackdet);
int iSetI2C_TX_ABRT_SOURCE_abrt_hs_norstrt(unsigned int uabrt_hs_norstrt);
int iSetI2C_TX_ABRT_SOURCE_abrt_sbyte_norstrt(unsigned int uabrt_sbyte_norstrt);
int iSetI2C_TX_ABRT_SOURCE_abrt_10b_rd_norstrt(unsigned int uabrt_10b_rd_norstrt);
int iSetI2C_TX_ABRT_SOURCE_arb_master_dis(unsigned int uarb_master_dis);
int iSetI2C_TX_ABRT_SOURCE_arb_lost(unsigned int uarb_lost);
int iSetI2C_TX_ABRT_SOURCE_abrt_slvflush_txfifo(unsigned int uabrt_slvflush_txfifo);
int iSetI2C_TX_ABRT_SOURCE_abrt_slv_arblost(unsigned int uabrt_slv_arblost);
int iSetI2C_TX_ABRT_SOURCE_abrt_slvrd_intx(unsigned int uabrt_slvrd_intx);
int iSetI2C_SLV_DATA_NACK_ONLY_nack(unsigned int unack);
int iSetI2C_DMA_CR_rdmae(unsigned int urdmae);
int iSetI2C_DMA_CR_tdmae(unsigned int utdmae);
int iSetI2C_DMA_TDLR_dma_tdlr(unsigned int udma_tdlr);
int iSetI2C_DMA_RDLR_dma_rdlr(unsigned int udma_rdlr);
int iSetI2C_SDA_SETUP_sda_setup(unsigned int usda_setup);
int iSetI2C_ACK_GENERAL_CALL_ack_gen_call(unsigned int uack_gen_call);
int iSetI2C_ENABLE_STATUS_ic_en(unsigned int uic_en);
int iSetI2C_ENABLE_STATUS_slv_rx_aborted(unsigned int uslv_rx_aborted);
int iSetI2C_ENABLE_STATUS_slv_rx_data_lost(unsigned int uslv_rx_data_lost);
int iSetI2C_COMP_PARAM_1_apb_data_width(unsigned int uapb_data_width);
int iSetI2C_COMP_PARAM_1_max_speed_mode(unsigned int umax_speed_mode);
int iSetI2C_COMP_PARAM_1_hc_count_values(unsigned int uhc_count_values);
int iSetI2C_COMP_PARAM_1_intr_io(unsigned int uintr_io);
int iSetI2C_COMP_PARAM_1_has_dma(unsigned int uhas_dma);
int iSetI2C_COMP_PARAM_1_add_encoded_params(unsigned int uadd_encoded_params);
int iSetI2C_COMP_PARAM_1_rx_buffer_depth(unsigned int urx_buffer_depth);
int iSetI2C_COMP_PARAM_1_tx_buffer_depth(unsigned int utx_buffer_depth);
int iSetI2C_COMP_VERSION_i2c_comp_version(unsigned int ui2c_comp_version);
int iSetI2C_COMP_TYPE_i2c_comp_type(unsigned int ui2c_comp_type);

/* Define the union csr_cntcr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 en : 1;     /* [0] */
        u32 hdbg : 1;   /* [1] */
        u32 rsv_0 : 6;  /* [7:2] */
        u32 fcrfeq : 3; /* [10:8] */
        u32 rsv_1 : 21; /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cntcr_u;

/* Define the union csr_cntsr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_2 : 1;  /* [0] */
        u32 dbgh : 1;   /* [1] */
        u32 rsv_3 : 6;  /* [7:2] */
        u32 fcack : 3;  /* [10:8] */
        u32 rsv_4 : 21; /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cntsr_u;

/* Define the union csr_cntcvl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 countvalue_low : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cntcvl_u;

/* Define the union csr_cntcvh_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 countvalue_high : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cntcvh_u;

/* Define the union csr_cntfid0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cntfid0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cntfid0_u;

/* Define the union csr_cntfid1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cntfid1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cntfid1_u;

/* Define the union csr_cntfid2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cntfid2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cntfid2_u;

/* Define the union csr_cntcvl_ns_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 countvalue_low : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cntcvl_ns_u;

/* Define the union csr_cntcvh_ns_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 countvalue_high : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cntcvh_ns_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_cntcr_u cntcr;         /* 0 */
    volatile csr_cntsr_u cntsr;         /* 4 */
    volatile csr_cntcvl_u cntcvl;       /* 8 */
    volatile csr_cntcvh_u cntcvh;       /* C */
    volatile csr_cntfid0_u cntfid0;     /* 20 */
    volatile csr_cntfid1_u cntfid1;     /* 24 */
    volatile csr_cntfid2_u cntfid2;     /* 28 */
    volatile csr_cntcvl_ns_u cntcvl_ns; /* 1008 */
    volatile csr_cntcvh_ns_u cntcvh_ns; /* 100C */
} S_counter_REGS_TYPE;

/* Declare the struct pointor of the module counter */
extern volatile S_counter_REGS_TYPE *gopcounterAllReg;

/* Declare the functions that set the member value */
int iSetCNTCR_en(unsigned int uen);
int iSetCNTCR_hdbg(unsigned int uhdbg);
int iSetCNTCR_fcrfeq(unsigned int ufcrfeq);
int iSetCNTSR_dbgh(unsigned int udbgh);
int iSetCNTSR_fcack(unsigned int ufcack);
int iSetCNTCVL_countvalue_low(unsigned int ucountvalue_low);
int iSetCNTCVH_countvalue_high(unsigned int ucountvalue_high);
int iSetCNTFID0_cntfid0(unsigned int ucntfid0);
int iSetCNTFID1_cntfid1(unsigned int ucntfid1);
int iSetCNTFID2_cntfid2(unsigned int ucntfid2);
int iSetCNTCVL_NS_countvalue_low(unsigned int ucountvalue_low);
int iSetCNTCVH_NS_countvalue_high(unsigned int ucountvalue_high);

/* Define the union csr_timer0_load_l_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_load_l : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_load_l_u;

/* Define the union csr_timer0_load_h_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_load_h : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_load_h_u;

/* Define the union csr_timer0_value_l_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_value_l : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_value_l_u;

/* Define the union csr_timer0_value_h_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_value_h : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_value_h_u;

/* Define the union csr_timer0_control_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_oneshot : 1;   /* [0] */
        u32 timer0_size : 1;      /* [1] */
        u32 timer0_pre : 2;       /* [3:2] */
        u32 rsv_0 : 1;            /* [4] */
        u32 timer0_intenable : 1; /* [5] */
        u32 timer0_mode : 1;      /* [6] */
        u32 timer0_en : 1;        /* [7] */
        u32 rsv_1 : 24;           /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_control_u;

/* Define the union csr_timer0_intclr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_intclr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_intclr_u;

/* Define the union csr_timer0_ris_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_ris : 1; /* [0] */
        u32 rsv_2 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_ris_u;

/* Define the union csr_timer0_mis_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_mis : 1; /* [0] */
        u32 rsv_3 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_mis_u;

/* Define the union csr_timer0_bgload_l_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_bgload_l : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_bgload_l_u;

/* Define the union csr_timer0_bgload_h_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer0_bgload_h : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer0_bgload_h_u;

/* Define the union csr_timer1_load_l_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_load_l : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_load_l_u;

/* Define the union csr_timer1_load_h_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_load_h : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_load_h_u;

/* Define the union csr_timer1_value_l_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_value_l : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_value_l_u;

/* Define the union csr_timer1_value_h_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_value_h : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_value_h_u;

/* Define the union csr_timer1_control_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_oneshot : 1;   /* [0] */
        u32 timer1_size : 1;      /* [1] */
        u32 timer1_pre : 2;       /* [3:2] */
        u32 rsv_4 : 1;            /* [4] */
        u32 timer1_intenable : 1; /* [5] */
        u32 timer1_mode : 1;      /* [6] */
        u32 timer1_en : 1;        /* [7] */
        u32 rsv_5 : 24;           /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_control_u;

/* Define the union csr_timer1_intclr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_intclr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_intclr_u;

/* Define the union csr_timer1_ris_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_ris : 1; /* [0] */
        u32 rsv_6 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_ris_u;

/* Define the union csr_timer1_mis_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_mis : 1; /* [0] */
        u32 rsv_7 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_mis_u;

/* Define the union csr_timer1_bgload_l_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_bgload_l : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_bgload_l_u;

/* Define the union csr_timer1_bgload_h_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 timer1_bgload_h : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_timer1_bgload_h_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_timer0_load_l_u timer0_load_l;     /* 0 */
    volatile csr_timer0_load_h_u timer0_load_h;     /* 4 */
    volatile csr_timer0_value_l_u timer0_value_l;   /* 8 */
    volatile csr_timer0_value_h_u timer0_value_h;   /* C */
    volatile csr_timer0_control_u timer0_control;   /* 10 */
    volatile csr_timer0_intclr_u timer0_intclr;     /* 14 */
    volatile csr_timer0_ris_u timer0_ris;           /* 18 */
    volatile csr_timer0_mis_u timer0_mis;           /* 1C */
    volatile csr_timer0_bgload_l_u timer0_bgload_l; /* 20 */
    volatile csr_timer0_bgload_h_u timer0_bgload_h; /* 24 */
    volatile csr_timer1_load_l_u timer1_load_l;     /* 40 */
    volatile csr_timer1_load_h_u timer1_load_h;     /* 44 */
    volatile csr_timer1_value_l_u timer1_value_l;   /* 48 */
    volatile csr_timer1_value_h_u timer1_value_h;   /* 4C */
    volatile csr_timer1_control_u timer1_control;   /* 50 */
    volatile csr_timer1_intclr_u timer1_intclr;     /* 54 */
    volatile csr_timer1_ris_u timer1_ris;           /* 58 */
    volatile csr_timer1_mis_u timer1_mis;           /* 5C */
    volatile csr_timer1_bgload_l_u timer1_bgload_l; /* 60 */
    volatile csr_timer1_bgload_h_u timer1_bgload_h; /* 64 */
} S_timer64_REGS_TYPE;

/* Declare the struct pointor of the module timer64 */
extern volatile S_timer64_REGS_TYPE *goptimer64AllReg;

/* Declare the functions that set the member value */
int iSetTIMER0_LOAD_L_timer0_load_l(unsigned int utimer0_load_l);
int iSetTIMER0_LOAD_H_timer0_load_h(unsigned int utimer0_load_h);
int iSetTIMER0_VALUE_L_timer0_value_l(unsigned int utimer0_value_l);
int iSetTIMER0_VALUE_H_timer0_value_h(unsigned int utimer0_value_h);
int iSetTIMER0_CONTROL_timer0_oneshot(unsigned int utimer0_oneshot);
int iSetTIMER0_CONTROL_timer0_size(unsigned int utimer0_size);
int iSetTIMER0_CONTROL_timer0_pre(unsigned int utimer0_pre);
int iSetTIMER0_CONTROL_timer0_intenable(unsigned int utimer0_intenable);
int iSetTIMER0_CONTROL_timer0_mode(unsigned int utimer0_mode);
int iSetTIMER0_CONTROL_timer0_en(unsigned int utimer0_en);
int iSetTIMER0_INTCLR_timer0_intclr(unsigned int utimer0_intclr);
int iSetTIMER0_RIS_timer0_ris(unsigned int utimer0_ris);
int iSetTIMER0_MIS_timer0_mis(unsigned int utimer0_mis);
int iSetTIMER0_BGLOAD_L_timer0_bgload_l(unsigned int utimer0_bgload_l);
int iSetTIMER0_BGLOAD_H_timer0_bgload_h(unsigned int utimer0_bgload_h);
int iSetTIMER1_LOAD_L_timer1_load_l(unsigned int utimer1_load_l);
int iSetTIMER1_LOAD_H_timer1_load_h(unsigned int utimer1_load_h);
int iSetTIMER1_VALUE_L_timer1_value_l(unsigned int utimer1_value_l);
int iSetTIMER1_VALUE_H_timer1_value_h(unsigned int utimer1_value_h);
int iSetTIMER1_CONTROL_timer1_oneshot(unsigned int utimer1_oneshot);
int iSetTIMER1_CONTROL_timer1_size(unsigned int utimer1_size);
int iSetTIMER1_CONTROL_timer1_pre(unsigned int utimer1_pre);
int iSetTIMER1_CONTROL_timer1_intenable(unsigned int utimer1_intenable);
int iSetTIMER1_CONTROL_timer1_mode(unsigned int utimer1_mode);
int iSetTIMER1_CONTROL_timer1_en(unsigned int utimer1_en);
int iSetTIMER1_INTCLR_timer1_intclr(unsigned int utimer1_intclr);
int iSetTIMER1_RIS_timer1_ris(unsigned int utimer1_ris);
int iSetTIMER1_MIS_timer1_mis(unsigned int utimer1_mis);
int iSetTIMER1_BGLOAD_L_timer1_bgload_l(unsigned int utimer1_bgload_l);
int iSetTIMER1_BGLOAD_H_timer1_bgload_h(unsigned int utimer1_bgload_h);

/* Define the union csr_gpio_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_data_u;

/* Define the union csr_gpio_direction_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_direction : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_direction_u;

/* Define the union csr_gpio_ctl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_ctl : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_ctl_u;

/* Define the union csr_gpio_inten_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_inten : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_inten_u;

/* Define the union csr_gpio_intmask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_intmask : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_intmask_u;

/* Define the union csr_gpio_inttype_level_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_inttype_level : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_inttype_level_u;

/* Define the union csr_gpio_int_polarity_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_int_polarity : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_int_polarity_u;

/* Define the union csr_gpio_intstatus_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_intstatus : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_intstatus_u;

/* Define the union csr_gpio_rawintstatus_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_rawintstatus : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_rawintstatus_u;

/* Define the union csr_gpio_debounce_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_debounce : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_debounce_u;

/* Define the union csr_gpio_porta_eoi_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_porta_eoi : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_porta_eoi_u;

/* Define the union csr_gpio_ext_porta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_ext_porta : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_ext_porta_u;

/* Define the union csr_gpio_ls_sync_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_ls_sync : 1; /* [0] */
        u32 rsv_0 : 31;       /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_ls_sync_u;

/* Define the union csr_gpio_id_code_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_id_code : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_id_code_u;

/* Define the union csr_gpio_comp_ver_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 gpio_comp_ver : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_gpio_comp_ver_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_gpio_data_u gpio_data;                   /* 0 */
    volatile csr_gpio_direction_u gpio_direction;         /* 4 */
    volatile csr_gpio_ctl_u gpio_ctl;                     /* 8 */
    volatile csr_gpio_inten_u gpio_inten;                 /* 30 */
    volatile csr_gpio_intmask_u gpio_intmask;             /* 34 */
    volatile csr_gpio_inttype_level_u gpio_inttype_level; /* 38 */
    volatile csr_gpio_int_polarity_u gpio_int_polarity;   /* 3C */
    volatile csr_gpio_intstatus_u gpio_intstatus;         /* 40 */
    volatile csr_gpio_rawintstatus_u gpio_rawintstatus;   /* 44 */
    volatile csr_gpio_debounce_u gpio_debounce;           /* 48 */
    volatile csr_gpio_porta_eoi_u gpio_porta_eoi;         /* 4C */
    volatile csr_gpio_ext_porta_u gpio_ext_porta;         /* 50 */
    volatile csr_gpio_ls_sync_u gpio_ls_sync;             /* 60 */
    volatile csr_gpio_id_code_u gpio_id_code;             /* 64 */
    volatile csr_gpio_comp_ver_u gpio_comp_ver;           /* 6C */
} S_gpio_0_REGS_TYPE;

/* Declare the struct pointor of the module gpio_0 */
extern volatile S_gpio_0_REGS_TYPE *gopgpio_0AllReg;

/* Declare the functions that set the member value */
int iSetGPIO_DATA_gpio_data(unsigned int ugpio_data);
int iSetGPIO_DIRECTION_gpio_direction(unsigned int ugpio_direction);
int iSetGPIO_CTL_gpio_ctl(unsigned int ugpio_ctl);
int iSetGPIO_INTEN_gpio_inten(unsigned int ugpio_inten);
int iSetGPIO_INTMASK_gpio_intmask(unsigned int ugpio_intmask);
int iSetGPIO_INTTYPE_LEVEL_gpio_inttype_level(unsigned int ugpio_inttype_level);
int iSetGPIO_INT_POLARITY_gpio_int_polarity(unsigned int ugpio_int_polarity);
int iSetGPIO_INTSTATUS_gpio_intstatus(unsigned int ugpio_intstatus);
int iSetGPIO_RAWINTSTATUS_gpio_rawintstatus(unsigned int ugpio_rawintstatus);
int iSetGPIO_DEBOUNCE_gpio_debounce(unsigned int ugpio_debounce);
int iSetGPIO_PORTA_EOI_gpio_porta_eoi(unsigned int ugpio_porta_eoi);
int iSetGPIO_EXT_PORTA_gpio_ext_porta(unsigned int ugpio_ext_porta);
int iSetGPIO_LS_SYNC_gpio_ls_sync(unsigned int ugpio_ls_sync);
int iSetGPIO_ID_CODE_gpio_id_code(unsigned int ugpio_id_code);
int iSetGPIO_COMP_VER_gpio_comp_ver(unsigned int ugpio_comp_ver);

/* Define the union csr_thr_rbr_dll_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 thr : 8;    /* [7:0] */
        u32 rsv_0 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_thr_rbr_dll_u;

/* Define the union csr_ier_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 erbfi : 1;  /* [0] */
        u32 etbei : 1;  /* [1] */
        u32 elsi : 1;   /* [2] */
        u32 rsv_1 : 4;  /* [6:3] */
        u32 ptime : 1;  /* [7] */
        u32 rsv_2 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ier_u;

/* Define the union csr_fcr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fifo_en : 1;       /* [0] */
        u32 rx_fifo_rst : 1;   /* [1] */
        u32 tx_fifo_rst : 1;   /* [2] */
        u32 dam_mode : 1;      /* [3] */
        u32 tx_fifio_line : 2; /* [5:4] */
        u32 rx_fifio_line : 2; /* [7:6] */
        u32 rsv_3 : 24;        /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_fcr_u;

/* Define the union csr_lcr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dls : 2;          /* [1:0] */
        u32 stop : 1;         /* [2] */
        u32 check_en : 1;     /* [3] */
        u32 parity_en : 1;    /* [4] */
        u32 stick_parity : 1; /* [5] */
        u32 brk : 1;          /* [6] */
        u32 dlab : 1;         /* [7] */
        u32 rsv_4 : 24;       /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcr_u;

/* Define the union csr_mcr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 datater_rdy : 1;     /* [0] */
        u32 tx_req : 1;          /* [1] */
        u32 rsv_5 : 2;           /* [3:2] */
        u32 loop_back : 1;       /* [4] */
        u32 auto_flowctl_en : 1; /* [5] */
        u32 rsv_6 : 26;          /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_mcr_u;

/* Define the union csr_lsr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 data_rdy : 1;     /* [0] */
        u32 overflow_ind : 1; /* [1] */
        u32 parity_err : 1;   /* [2] */
        u32 frame_err : 1;    /* [3] */
        u32 break_ind : 1;    /* [4] */
        u32 tx_buf_empty : 1; /* [5] */
        u32 tx_empty : 1;     /* [6] */
        u32 rx_fifo_err : 1;  /* [7] */
        u32 rsv_7 : 24;       /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lsr_u;

/* Define the union csr_scr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 scr : 8;    /* [7:0] */
        u32 rsv_8 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_scr_u;

/* Define the union csr_far_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fifo_access_ctrl : 1; /* [0] */
        u32 rsv_9 : 31;           /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_far_u;

/* Define the union csr_tfr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_fifio_rd : 8; /* [7:0] */
        u32 rsv_10 : 24;     /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tfr_u;

/* Define the union csr_rfw_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_fifo_wr : 8;         /* [7:0] */
        u32 rx_fifo_parity_err : 1; /* [8] */
        u32 rx_fifo_frame_err : 1;  /* [9] */
        u32 rsv_11 : 22;            /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rfw_u;

/* Define the union csr_usr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 busy : 1;            /* [0] */
        u32 tx_fifo_nofull : 1;  /* [1] */
        u32 tx_fifo_empty : 1;   /* [2] */
        u32 rx_fifo_noempty : 1; /* [3] */
        u32 rx_fifo_full : 1;    /* [4] */
        u32 rsv_12 : 27;         /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_usr_u;

/* Define the union csr_tfl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_fifo_line : 8; /* [7:0] */
        u32 rsv_13 : 24;      /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tfl_u;

/* Define the union csr_rfl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_fifo_line : 8; /* [7:0] */
        u32 rsv_14 : 24;      /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rfl_u;

/* Define the union csr_htx_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_halt : 1; /* [0] */
        u32 rsv_15 : 31; /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_htx_u;

/* Define the union csr_dmasa_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dma_soft_ans : 1; /* [0] */
        u32 rsv_16 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_dmasa_u;

/* Define the union csr_cpr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 apb_data_width : 2;         /* [1:0] */
        u32 rsv_17 : 2;                 /* [3:2] */
        u32 afce_mode : 1;              /* [4] */
        u32 thre_mode : 1;              /* [5] */
        u32 sir_mode : 1;               /* [6] */
        u32 sir_lp_mode : 1;            /* [7] */
        u32 additional_feat : 1;        /* [8] */
        u32 fifo_access : 1;            /* [9] */
        u32 fifo_stat : 1;              /* [10] */
        u32 shadow : 1;                 /* [11] */
        u32 uart_add_encode_params : 1; /* [12] */
        u32 dma_extra : 1;              /* [13] */
        u32 rsv_18 : 2;                 /* [15:14] */
        u32 fifo_mode : 8;              /* [23:16] */
        u32 rsv_19 : 8;                 /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_cpr_u;

/* Define the union csr_ucv_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ucv : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ucv_u;

/* Define the union csr_ctr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ctr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ctr_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_thr_rbr_dll_u thr_rbr_dll; /* 0 */
    volatile csr_ier_u ier;                 /* 4 */
    volatile csr_fcr_u fcr;                 /* 8 */
    volatile csr_lcr_u lcr;                 /* C */
    volatile csr_mcr_u mcr;                 /* 10 */
    volatile csr_lsr_u lsr;                 /* 14 */
    volatile csr_scr_u scr;                 /* 1C */
    volatile csr_far_u far;                 /* 70 */
    volatile csr_tfr_u tfr;                 /* 74 */
    volatile csr_rfw_u rfw;                 /* 78 */
    volatile csr_usr_u usr;                 /* 7C */
    volatile csr_tfl_u tfl;                 /* 80 */
    volatile csr_rfl_u rfl;                 /* 84 */
    volatile csr_htx_u htx;                 /* A4 */
    volatile csr_dmasa_u dmasa;             /* A8 */
    volatile csr_cpr_u cpr;                 /* F4 */
    volatile csr_ucv_u ucv;                 /* F8 */
    volatile csr_ctr_u ctr;                 /* FC */
} S_uart_REGS_TYPE;

/* Declare the struct pointor of the module uart */
extern volatile S_uart_REGS_TYPE *gopuartAllReg;

/* Declare the functions that set the member value */
int iSetTHR_RBR_DLL_thr(unsigned int uthr);
int iSetIER_erbfi(unsigned int uerbfi);
int iSetIER_etbei(unsigned int uetbei);
int iSetIER_elsi(unsigned int uelsi);
int iSetIER_ptime(unsigned int uptime);
int iSetFCR_fifo_en(unsigned int ufifo_en);
int iSetFCR_rx_fifo_rst(unsigned int urx_fifo_rst);
int iSetFCR_tx_fifo_rst(unsigned int utx_fifo_rst);
int iSetFCR_dam_mode(unsigned int udam_mode);
int iSetFCR_tx_fifio_line(unsigned int utx_fifio_line);
int iSetFCR_rx_fifio_line(unsigned int urx_fifio_line);
int iSetLCR_dls(unsigned int udls);
int iSetLCR_stop(unsigned int ustop);
int iSetLCR_check_en(unsigned int ucheck_en);
int iSetLCR_parity_en(unsigned int uparity_en);
int iSetLCR_stick_parity(unsigned int ustick_parity);
int iSetLCR_break(unsigned int ubreak);
int iSetLCR_dlab(unsigned int udlab);
int iSetMCR_datater_rdy(unsigned int udatater_rdy);
int iSetMCR_tx_req(unsigned int utx_req);
int iSetMCR_loop_back(unsigned int uloop_back);
int iSetMCR_auto_flowctl_en(unsigned int uauto_flowctl_en);
int iSetLSR_data_rdy(unsigned int udata_rdy);
int iSetLSR_overflow_ind(unsigned int uoverflow_ind);
int iSetLSR_parity_err(unsigned int uparity_err);
int iSetLSR_frame_err(unsigned int uframe_err);
int iSetLSR_break_ind(unsigned int ubreak_ind);
int iSetLSR_tx_buf_empty(unsigned int utx_buf_empty);
int iSetLSR_tx_empty(unsigned int utx_empty);
int iSetLSR_rx_fifo_err(unsigned int urx_fifo_err);
int iSetSCR_scr(unsigned int uscr);
int iSetFAR_fifo_access_ctrl(unsigned int ufifo_access_ctrl);
int iSetTFR_tx_fifio_rd(unsigned int utx_fifio_rd);
int iSetRFW_rx_fifo_wr(unsigned int urx_fifo_wr);
int iSetRFW_rx_fifo_parity_err(unsigned int urx_fifo_parity_err);
int iSetRFW_rx_fifo_frame_err(unsigned int urx_fifo_frame_err);
int iSetUSR_busy(unsigned int ubusy);
int iSetUSR_tx_fifo_nofull(unsigned int utx_fifo_nofull);
int iSetUSR_tx_fifo_empty(unsigned int utx_fifo_empty);
int iSetUSR_rx_fifo_noempty(unsigned int urx_fifo_noempty);
int iSetUSR_rx_fifo_full(unsigned int urx_fifo_full);
int iSetTFL_tx_fifo_line(unsigned int utx_fifo_line);
int iSetRFL_rx_fifo_line(unsigned int urx_fifo_line);
int iSetHTX_tx_halt(unsigned int utx_halt);
int iSetDMASA_dma_soft_ans(unsigned int udma_soft_ans);
int iSetCPR_apb_data_width(unsigned int uapb_data_width);
int iSetCPR_afce_mode(unsigned int uafce_mode);
int iSetCPR_thre_mode(unsigned int uthre_mode);
int iSetCPR_sir_mode(unsigned int usir_mode);
int iSetCPR_sir_lp_mode(unsigned int usir_lp_mode);
int iSetCPR_additional_feat(unsigned int uadditional_feat);
int iSetCPR_fifo_access(unsigned int ufifo_access);
int iSetCPR_fifo_stat(unsigned int ufifo_stat);
int iSetCPR_shadow(unsigned int ushadow);
int iSetCPR_uart_add_encode_params(unsigned int uuart_add_encode_params);
int iSetCPR_dma_extra(unsigned int udma_extra);
int iSetCPR_fifo_mode(unsigned int ufifo_mode);
int iSetUCV_ucv(unsigned int uucv);
int iSetCTR_ctr(unsigned int uctr);

/* Define the union csr_smb_i2c_con_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 master_enable : 1; /* [0] */
        u32 speed : 2;         /* [2:1] */
        u32 slave_10bit : 1;   /* [3] */
        u32 rsv_0 : 1;         /* [4] */
        u32 restart_en : 1;    /* [5] */
        u32 slave_disable : 1; /* [6] */
        u32 rsv_1 : 25;        /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_con_u;

/* Define the union csr_smb_i2c_tar_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_2 : 8;        /* [7:0] */
        u32 i2c_tar : 2;      /* [9:8] */
        u32 gc_or_start : 1;  /* [10] */
        u32 special : 1;      /* [11] */
        u32 master_10bit : 1; /* [12] */
        u32 rsv_3 : 19;       /* [31:13] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_tar_u;

/* Define the union csr_smb_i2c_sar_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_sar : 10; /* [9:0] */
        u32 rsv_4 : 22;   /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_sar_u;

/* Define the union csr_smb_i2c_data_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 addr_or_data : 8; /* [7:0] */
        u32 cmd : 1;          /* [8] */
        u32 addr_en : 1;      /* [9] */
        u32 stop_en : 1;      /* [10] */
        u32 rsv_5 : 21;       /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_data_cmd_u;

/* Define the union csr_smb_i2c_ss_scl_hcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_ss_scl_hcnt : 16; /* [15:0] */
        u32 rsv_6 : 16;           /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_ss_scl_hcnt_u;

/* Define the union csr_smb_i2c_ss_scl_lcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_ss_scl_lcnt : 16; /* [15:0] */
        u32 rsv_7 : 16;           /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_ss_scl_lcnt_u;

/* Define the union csr_smb_i2c_fs_scl_hcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_fs_scl_hcnt : 16; /* [15:0] */
        u32 rsv_8 : 16;           /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_fs_scl_hcnt_u;

/* Define the union csr_smb_i2c_fs_scl_lcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_fs_scl_lcnt : 16; /* [15:0] */
        u32 rsv_9 : 16;           /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_fs_scl_lcnt_u;

/* Define the union csr_smb_i2c_intr_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_under_stat : 1;         /* [0] */
        u32 rx_over_stat : 1;          /* [1] */
        u32 rx_full_stat : 1;          /* [2] */
        u32 tx_over_stat : 1;          /* [3] */
        u32 tx_empty_stat : 1;         /* [4] */
        u32 rd_req_stat : 1;           /* [5] */
        u32 tx_abrt_stat : 1;          /* [6] */
        u32 tx_done_stat : 1;          /* [7] */
        u32 activity_stat : 1;         /* [8] */
        u32 stop_det_stat : 1;         /* [9] */
        u32 start_det_stat : 1;        /* [10] */
        u32 gen_call_stat : 1;         /* [11] */
        u32 alert_det_stat : 1;        /* [12] */
        u32 slv_data_receive_stat : 1; /* [13] */
        u32 slv_addr_receive_stat : 1; /* [14] */
        u32 scl_low_tout_stat : 1;     /* [15] */
        u32 scl_high_tout_stat : 1;    /* [16] */
        u32 pmbus_cmd_finish_stat : 1; /* [17] */
        u32 pec_rd_err_stat : 1;       /* [18] */
        u32 arp_cmd_err_stat : 1;      /* [19] */
        u32 rsv_10 : 12;               /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_intr_stat_u;

/* Define the union csr_smb_i2c_intr_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_under_en : 1;         /* [0] */
        u32 rx_over_en : 1;          /* [1] */
        u32 rx_full_en : 1;          /* [2] */
        u32 tx_over_en : 1;          /* [3] */
        u32 tx_empty_en : 1;         /* [4] */
        u32 rd_req_en : 1;           /* [5] */
        u32 tx_abrt_en : 1;          /* [6] */
        u32 tx_done_en : 1;          /* [7] */
        u32 activity_en : 1;         /* [8] */
        u32 stop_det_en : 1;         /* [9] */
        u32 start_det_en : 1;        /* [10] */
        u32 gen_call_en : 1;         /* [11] */
        u32 alert_det_en : 1;        /* [12] */
        u32 slv_data_receive_en : 1; /* [13] */
        u32 slv_addr_receive_en : 1; /* [14] */
        u32 scl_low_tout_en : 1;     /* [15] */
        u32 scl_high_tout_en : 1;    /* [16] */
        u32 pmbus_cmd_finish_en : 1; /* [17] */
        u32 pec_rd_err_en : 1;       /* [18] */
        u32 arp_cmd_err_en : 1;      /* [19] */
        u32 rsv_11 : 12;             /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_intr_en_u;

/* Define the union csr_smb_i2c_intr_raw_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_under : 1;          /* [0] */
        u32 rx_over : 1;           /* [1] */
        u32 rx_full : 1;           /* [2] */
        u32 tx_over : 1;           /* [3] */
        u32 tx_empty : 1;          /* [4] */
        u32 rd_req : 1;            /* [5] */
        u32 tx_abrt : 1;           /* [6] */
        u32 tx_done : 1;           /* [7] */
        u32 activity : 1;          /* [8] */
        u32 stop_det : 1;          /* [9] */
        u32 start_det : 1;         /* [10] */
        u32 gen_call : 1;          /* [11] */
        u32 alert_det : 1;         /* [12] */
        u32 slv_data_receive : 1;  /* [13] */
        u32 slv_addr_received : 1; /* [14] */
        u32 scl_low_tout : 1;      /* [15] */
        u32 scl_high_tout : 1;     /* [16] */
        u32 pmbus_cmd_finish : 1;  /* [17] */
        u32 pec_rd_err : 1;        /* [18] */
        u32 arp_cmd_err : 1;       /* [19] */
        u32 rsv_12 : 12;           /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_intr_raw_u;

/* Define the union csr_smb_i2c_rx_tl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_tl : 6;   /* [5:0] */
        u32 rsv_13 : 26; /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_rx_tl_u;

/* Define the union csr_smb_i2c_tx_tl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_tl : 6;   /* [5:0] */
        u32 rsv_14 : 26; /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_tx_tl_u;

/* Define the union csr_smb_i2c_enable_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 enable : 1;  /* [0] */
        u32 rsv_15 : 31; /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_enable_u;

/* Define the union csr_smb_i2c_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_activity : 1;    /* [0] */
        u32 tx_fifo_nfull : 1;   /* [1] */
        u32 tx_fifo_empty : 1;   /* [2] */
        u32 rx_fifo_nempty : 1;  /* [3] */
        u32 rx_fifo_full : 1;    /* [4] */
        u32 timeout_sda : 1;     /* [5] */
        u32 timeout_scl : 1;     /* [6] */
        u32 bus_busy : 1;        /* [7] */
        u32 alert_status : 1;    /* [8] */
        u32 sda_in : 1;          /* [9] */
        u32 scl_in : 1;          /* [10] */
        u32 rsv_16 : 1;          /* [11] */
        u32 mst_activity : 1;    /* [12] */
        u32 mst_cur_fsm : 5;     /* [17:13] */
        u32 mst_timeout_fsm : 5; /* [22:18] */
        u32 slv_activity : 1;    /* [23] */
        u32 slv_cur_fsm : 4;     /* [27:24] */
        u32 slv_timeout_fsm : 4; /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_status_u;

/* Define the union csr_smb_i2c_txflr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_flr : 7;  /* [6:0] */
        u32 rsv_17 : 25; /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_txflr_u;

/* Define the union csr_smb_i2c_rxflr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_flr : 7;  /* [6:0] */
        u32 rsv_18 : 25; /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_rxflr_u;

/* Define the union csr_smb_i2c_sda_hold_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sda_hold : 16; /* [15:0] */
        u32 rsv_19 : 16;   /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_sda_hold_u;

/* Define the union csr_smb_i2c_tx_abrt_src_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 abrt_7b_addr_noack : 1;   /* [0] */
        u32 abrt_10addr1_noack : 1;   /* [1] */
        u32 abrt_10addr2_noack : 1;   /* [2] */
        u32 abrt_txdata_noack : 1;    /* [3] */
        u32 abrt_gcall_noack : 1;     /* [4] */
        u32 abrt_gcall_read : 1;      /* [5] */
        u32 abrt_hs_ackdet : 1;       /* [6] */
        u32 abrt_sbyte_ackdet : 1;    /* [7] */
        u32 abrt_hs_norstrt : 1;      /* [8] */
        u32 abrt_sbyte_norstrt : 1;   /* [9] */
        u32 abrt_10b_rd_norstrt : 1;  /* [10] */
        u32 rsv_20 : 1;               /* [11] */
        u32 arb_lost : 1;             /* [12] */
        u32 abrt_slvflush_txfifo : 1; /* [13] */
        u32 abrt_slv_lft : 1;         /* [14] */
        u32 abrt_slvrd_intx : 1;      /* [15] */
        u32 abrt_slv_stop : 1;        /* [16] */
        u32 abrt_slv_alert : 1;       /* [17] */
        u32 abrt_slv_pec : 1;         /* [18] */
        u32 abrt_nack_pec : 1;        /* [19] */
        u32 abrt_mst_comb : 1;        /* [20] */
        u32 abrt_mst_alert : 1;       /* [21] */
        u32 rsv_21 : 10;              /* [31:22] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_tx_abrt_src_u;

/* Define the union csr_smb_i2c_sda_setup_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sda_setup : 16; /* [15:0] */
        u32 rsv_22 : 16;    /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_sda_setup_u;

/* Define the union csr_smb_i2c_ack_general_call_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ack_gen_call : 1; /* [0] */
        u32 rsv_23 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_ack_general_call_u;

/* Define the union csr_smb_i2c_enable_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_en : 1;                 /* [0] */
        u32 slv_disable_while_busy : 1; /* [1] */
        u32 slv_rx_lost : 1;            /* [2] */
        u32 rsv_24 : 29;                /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_enable_status_u;

/* Define the union csr_smb_i2c_scl_switch_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 scl_switch : 1; /* [0] */
        u32 rsv_25 : 31;    /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_scl_switch_u;

/* Define the union csr_smb_i2c_scl_sim_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 scl_sim : 1; /* [0] */
        u32 rsv_26 : 31; /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_scl_sim_u;

/* Define the union csr_smb_i2c_lpif_state_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_lpif_state : 3; /* [2:0] */
        u32 rsv_27 : 29;        /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_lpif_state_u;

/* Define the union csr_smb_i2c_lock_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_lock : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_lock_u;

/* Define the union csr_smb_i2c_sda_switch_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sda_switch : 1; /* [0] */
        u32 rsv_28 : 31;    /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_sda_switch_u;

/* Define the union csr_smb_i2c_sda_sim_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sda_sim : 1; /* [0] */
        u32 rsv_29 : 31; /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_sda_sim_u;

/* Define the union csr_smb_i2c_sar_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_sar_mask : 10; /* [9:0] */
        u32 rsv_30 : 22;       /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_sar_mask_u;

/* Define the union csr_smb_i2c_pmbus_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ack_mode : 1; /* [0] */
        u32 alert_en : 1; /* [1] */
        u32 pec_en : 1;   /* [2] */
        u32 arp_en : 1;   /* [3] */
        u32 rsv_31 : 28;  /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_pmbus_ctrl_u;

/* Define the union csr_smb_i2c_low_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_low_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_low_timeout_u;

/* Define the union csr_smb_i2c_high_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_high_timeout : 15; /* [14:0] */
        u32 rsv_32 : 17;           /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_high_timeout_u;

/* Define the union csr_smb_i2c_slv_alert_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 alert_set : 1; /* [0] */
        u32 rsv_33 : 31;   /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_slv_alert_set_u;

/* Define the union csr_smb_i2c_mst_alert_do_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 alert_do : 1; /* [0] */
        u32 rsv_34 : 31;  /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_mst_alert_do_u;

/* Define the union csr_smb_i2c_ack_resp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ack_resp : 1; /* [0] */
        u32 rsv_35 : 31;  /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_ack_resp_u;

/* Define the union csr_smb_i2c_pec_info_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pec_receive : 8;  /* [7:0] */
        u32 pec_valid : 1;    /* [8] */
        u32 pec_check : 1;    /* [9] */
        u32 pec_err_info : 8; /* [17:10] */
        u32 rsv_36 : 14;      /* [31:18] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_pec_info_u;

/* Define the union csr_smb_i2c_addr_receive_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 slv_addr_receive : 10; /* [9:0] */
        u32 rsv_37 : 22;           /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_addr_receive_u;

/* Define the union csr_smb_i2c_manu_ack_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_manu_ack_cnt : 6; /* [5:0] */
        u32 rsv_38 : 26;          /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_manu_ack_cnt_u;

/* Define the union csr_smb_i2c_grp_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 group_cmd_en : 1; /* [0] */
        u32 rsv_39 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_grp_cmd_u;

/* Define the union csr_smb_i2c_pmbus_scl_det_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 scl_idle_det_en : 1; /* [0] */
        u32 scl_ltimeout_en : 1; /* [1] */
        u32 scl_htimeout_en : 1; /* [2] */
        u32 rsv_40 : 29;         /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_pmbus_scl_det_u;

/* Define the union csr_smb_i2c_pmbus_idlecnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 pmbus_idle_cnt : 15; /* [14:0] */
        u32 rsv_41 : 17;         /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_pmbus_idlecnt_u;

/* Define the union csr_smb_i2c_pmbus_rst_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 srst : 1;    /* [0] */
        u32 rsv_42 : 31; /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_pmbus_rst_u;

/* Define the union csr_smb_i2c_tx_info_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_addr_or_data : 8; /* [7:0] */
        u32 i2c_cmd : 1;          /* [8] */
        u32 i2c_addr_en : 1;      /* [9] */
        u32 i2c_stop_en : 1;      /* [10] */
        u32 rsv_43 : 21;          /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_tx_info_u;

/* Define the union csr_smb_i2c_tx_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_tx_cnt : 7; /* [6:0] */
        u32 rsv_44 : 25;    /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_tx_cnt_u;

/* Define the union csr_smb_i2c_trigger_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 i2c_trigger_en : 1; /* [0] */
        u32 rsv_45 : 31;        /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_i2c_trigger_en_u;

/* Define the union csr_smb_udid_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 vendor_spec_id : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_udid_0_u;

/* Define the union csr_smb_udid_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 subsys_device_id : 16; /* [15:0] */
        u32 subsys_vendor_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_udid_1_u;

/* Define the union csr_smb_udid_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smbus_version : 4;     /* [3:0] */
        u32 support_protocol : 12; /* [15:4] */
        u32 device_id : 16;        /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_udid_2_u;

/* Define the union csr_smb_udid_3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 vendor_id : 16;          /* [15:0] */
        u32 silicon_revision_id : 3; /* [18:16] */
        u32 udid_version : 3;        /* [21:19] */
        u32 rsv_46 : 2;              /* [23:22] */
        u32 arp_pec_en : 1;          /* [24] */
        u32 rsv_47 : 5;              /* [29:25] */
        u32 addr_type : 2;           /* [31:30] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_udid_3_u;

/* Define the union csr_smb_arp_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 arp_addr : 7; /* [6:0] */
        u32 rsv_48 : 25;  /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_arp_addr_u;

/* Define the union csr_smb_psa_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smb_psa : 7; /* [6:0] */
        u32 rsv_49 : 25; /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_psa_u;

/* Define the union csr_smb_notify_do_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 notify_do : 1; /* [0] */
        u32 rsv_50 : 31;   /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_notify_do_u;

/* Define the union csr_smb_arp_info_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 av_flg : 1;         /* [0] */
        u32 ar_flg : 1;         /* [1] */
        u32 arp_done : 1;       /* [2] */
        u32 arp_cmd_err : 1;    /* [3] */
        u32 rxed_wrong_cmd : 8; /* [11:4] */
        u32 rsv_51 : 20;        /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_smb_arp_info_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_smb_i2c_con_u smb_i2c_con;                           /* 0 */
    volatile csr_smb_i2c_tar_u smb_i2c_tar;                           /* 4 */
    volatile csr_smb_i2c_sar_u smb_i2c_sar;                           /* 8 */
    volatile csr_smb_i2c_data_cmd_u smb_i2c_data_cmd;                 /* 10 */
    volatile csr_smb_i2c_ss_scl_hcnt_u smb_i2c_ss_scl_hcnt;           /* 14 */
    volatile csr_smb_i2c_ss_scl_lcnt_u smb_i2c_ss_scl_lcnt;           /* 18 */
    volatile csr_smb_i2c_fs_scl_hcnt_u smb_i2c_fs_scl_hcnt;           /* 1C */
    volatile csr_smb_i2c_fs_scl_lcnt_u smb_i2c_fs_scl_lcnt;           /* 20 */
    volatile csr_smb_i2c_intr_stat_u smb_i2c_intr_stat;               /* 2C */
    volatile csr_smb_i2c_intr_en_u smb_i2c_intr_en;                   /* 30 */
    volatile csr_smb_i2c_intr_raw_u smb_i2c_intr_raw;                 /* 34 */
    volatile csr_smb_i2c_rx_tl_u smb_i2c_rx_tl;                       /* 38 */
    volatile csr_smb_i2c_tx_tl_u smb_i2c_tx_tl;                       /* 3C */
    volatile csr_smb_i2c_enable_u smb_i2c_enable;                     /* 6C */
    volatile csr_smb_i2c_status_u smb_i2c_status;                     /* 70 */
    volatile csr_smb_i2c_txflr_u smb_i2c_txflr;                       /* 74 */
    volatile csr_smb_i2c_rxflr_u smb_i2c_rxflr;                       /* 78 */
    volatile csr_smb_i2c_sda_hold_u smb_i2c_sda_hold;                 /* 7C */
    volatile csr_smb_i2c_tx_abrt_src_u smb_i2c_tx_abrt_src;           /* 80 */
    volatile csr_smb_i2c_sda_setup_u smb_i2c_sda_setup;               /* 94 */
    volatile csr_smb_i2c_ack_general_call_u smb_i2c_ack_general_call; /* 98 */
    volatile csr_smb_i2c_enable_status_u smb_i2c_enable_status;       /* 9C */
    volatile csr_smb_i2c_scl_switch_u smb_i2c_scl_switch;             /* A0 */
    volatile csr_smb_i2c_scl_sim_u smb_i2c_scl_sim;                   /* A4 */
    volatile csr_smb_i2c_lpif_state_u smb_i2c_lpif_state;             /* A8 */
    volatile csr_smb_i2c_lock_u smb_i2c_lock;                         /* AC */
    volatile csr_smb_i2c_sda_switch_u smb_i2c_sda_switch;             /* B0 */
    volatile csr_smb_i2c_sda_sim_u smb_i2c_sda_sim;                   /* B4 */
    volatile csr_smb_i2c_sar_mask_u smb_i2c_sar_mask;                 /* 100 */
    volatile csr_smb_i2c_pmbus_ctrl_u smb_i2c_pmbus_ctrl;             /* 104 */
    volatile csr_smb_i2c_low_timeout_u smb_i2c_low_timeout;           /* 108 */
    volatile csr_smb_i2c_high_timeout_u smb_i2c_high_timeout;         /* 10C */
    volatile csr_smb_i2c_slv_alert_set_u smb_i2c_slv_alert_set;       /* 110 */
    volatile csr_smb_i2c_mst_alert_do_u smb_i2c_mst_alert_do;         /* 114 */
    volatile csr_smb_i2c_ack_resp_u smb_i2c_ack_resp;                 /* 118 */
    volatile csr_smb_i2c_pec_info_u smb_i2c_pec_info;                 /* 11C */
    volatile csr_smb_i2c_addr_receive_u smb_i2c_addr_receive;         /* 120 */
    volatile csr_smb_i2c_manu_ack_cnt_u smb_i2c_manu_ack_cnt;         /* 124 */
    volatile csr_smb_i2c_grp_cmd_u smb_i2c_grp_cmd;                   /* 128 */
    volatile csr_smb_i2c_pmbus_scl_det_u smb_i2c_pmbus_scl_det;       /* 12C */
    volatile csr_smb_i2c_pmbus_idlecnt_u smb_i2c_pmbus_idlecnt;       /* 130 */
    volatile csr_smb_i2c_pmbus_rst_u smb_i2c_pmbus_rst;               /* 134 */
    volatile csr_smb_i2c_tx_info_u smb_i2c_tx_info[64];               /* 138 */
    volatile csr_smb_i2c_tx_cnt_u smb_i2c_tx_cnt;                     /* 238 */
    volatile csr_smb_i2c_trigger_en_u smb_i2c_trigger_en;             /* 23C */
    volatile csr_smb_udid_0_u smb_udid_0;                             /* 240 */
    volatile csr_smb_udid_1_u smb_udid_1;                             /* 244 */
    volatile csr_smb_udid_2_u smb_udid_2;                             /* 248 */
    volatile csr_smb_udid_3_u smb_udid_3;                             /* 24C */
    volatile csr_smb_arp_addr_u smb_arp_addr;                         /* 250 */
    volatile csr_smb_psa_u smb_psa;                                   /* 254 */
    volatile csr_smb_notify_do_u smb_notify_do;                       /* 258 */
    volatile csr_smb_arp_info_u smb_arp_info;                         /* 25C */
} S_smbus_REGS_TYPE;

/* Declare the struct pointor of the module smbus */
extern volatile S_smbus_REGS_TYPE *gopsmbusAllReg;

/* Declare the functions that set the member value */
int iSetSMB_I2C_CON_master_enable(unsigned int umaster_enable);
int iSetSMB_I2C_CON_speed(unsigned int uspeed);
int iSetSMB_I2C_CON_slave_10bit(unsigned int uslave_10bit);
int iSetSMB_I2C_CON_restart_en(unsigned int urestart_en);
int iSetSMB_I2C_CON_slave_disable(unsigned int uslave_disable);
int iSetSMB_I2C_TAR_i2c_tar(unsigned int ui2c_tar);
int iSetSMB_I2C_TAR_gc_or_start(unsigned int ugc_or_start);
int iSetSMB_I2C_TAR_special(unsigned int uspecial);
int iSetSMB_I2C_TAR_master_10bit(unsigned int umaster_10bit);
int iSetSMB_I2C_SAR_i2c_sar(unsigned int ui2c_sar);
int iSetSMB_I2C_DATA_CMD_addr_or_data(unsigned int uaddr_or_data);
int iSetSMB_I2C_DATA_CMD_cmd(unsigned int ucmd);
int iSetSMB_I2C_DATA_CMD_addr_en(unsigned int uaddr_en);
int iSetSMB_I2C_DATA_CMD_stop_en(unsigned int ustop_en);
int iSetSMB_I2C_SS_SCL_HCNT_i2c_ss_scl_hcnt(unsigned int ui2c_ss_scl_hcnt);
int iSetSMB_I2C_SS_SCL_LCNT_i2c_ss_scl_lcnt(unsigned int ui2c_ss_scl_lcnt);
int iSetSMB_I2C_FS_SCL_HCNT_i2c_fs_scl_hcnt(unsigned int ui2c_fs_scl_hcnt);
int iSetSMB_I2C_FS_SCL_LCNT_i2c_fs_scl_lcnt(unsigned int ui2c_fs_scl_lcnt);
int iSetSMB_I2C_INTR_STAT_rx_under_stat(unsigned int urx_under_stat);
int iSetSMB_I2C_INTR_STAT_rx_over_stat(unsigned int urx_over_stat);
int iSetSMB_I2C_INTR_STAT_rx_full_stat(unsigned int urx_full_stat);
int iSetSMB_I2C_INTR_STAT_tx_over_stat(unsigned int utx_over_stat);
int iSetSMB_I2C_INTR_STAT_tx_empty_stat(unsigned int utx_empty_stat);
int iSetSMB_I2C_INTR_STAT_rd_req_stat(unsigned int urd_req_stat);
int iSetSMB_I2C_INTR_STAT_tx_abrt_stat(unsigned int utx_abrt_stat);
int iSetSMB_I2C_INTR_STAT_tx_done_stat(unsigned int utx_done_stat);
int iSetSMB_I2C_INTR_STAT_activity_stat(unsigned int uactivity_stat);
int iSetSMB_I2C_INTR_STAT_stop_det_stat(unsigned int ustop_det_stat);
int iSetSMB_I2C_INTR_STAT_start_det_stat(unsigned int ustart_det_stat);
int iSetSMB_I2C_INTR_STAT_gen_call_stat(unsigned int ugen_call_stat);
int iSetSMB_I2C_INTR_STAT_alert_det_stat(unsigned int ualert_det_stat);
int iSetSMB_I2C_INTR_STAT_slv_data_receive_stat(unsigned int uslv_data_receive_stat);
int iSetSMB_I2C_INTR_STAT_slv_addr_receive_stat(unsigned int uslv_addr_receive_stat);
int iSetSMB_I2C_INTR_STAT_scl_low_tout_stat(unsigned int uscl_low_tout_stat);
int iSetSMB_I2C_INTR_STAT_scl_high_tout_stat(unsigned int uscl_high_tout_stat);
int iSetSMB_I2C_INTR_STAT_pmbus_cmd_finish_stat(unsigned int upmbus_cmd_finish_stat);
int iSetSMB_I2C_INTR_STAT_pec_rd_err_stat(unsigned int upec_rd_err_stat);
int iSetSMB_I2C_INTR_STAT_arp_cmd_err_stat(unsigned int uarp_cmd_err_stat);
int iSetSMB_I2C_INTR_EN_rx_under_en(unsigned int urx_under_en);
int iSetSMB_I2C_INTR_EN_rx_over_en(unsigned int urx_over_en);
int iSetSMB_I2C_INTR_EN_rx_full_en(unsigned int urx_full_en);
int iSetSMB_I2C_INTR_EN_tx_over_en(unsigned int utx_over_en);
int iSetSMB_I2C_INTR_EN_tx_empty_en(unsigned int utx_empty_en);
int iSetSMB_I2C_INTR_EN_rd_req_en(unsigned int urd_req_en);
int iSetSMB_I2C_INTR_EN_tx_abrt_en(unsigned int utx_abrt_en);
int iSetSMB_I2C_INTR_EN_tx_done_en(unsigned int utx_done_en);
int iSetSMB_I2C_INTR_EN_activity_en(unsigned int uactivity_en);
int iSetSMB_I2C_INTR_EN_stop_det_en(unsigned int ustop_det_en);
int iSetSMB_I2C_INTR_EN_start_det_en(unsigned int ustart_det_en);
int iSetSMB_I2C_INTR_EN_gen_call_en(unsigned int ugen_call_en);
int iSetSMB_I2C_INTR_EN_alert_det_en(unsigned int ualert_det_en);
int iSetSMB_I2C_INTR_EN_slv_data_receive_en(unsigned int uslv_data_receive_en);
int iSetSMB_I2C_INTR_EN_slv_addr_receive_en(unsigned int uslv_addr_receive_en);
int iSetSMB_I2C_INTR_EN_scl_low_tout_en(unsigned int uscl_low_tout_en);
int iSetSMB_I2C_INTR_EN_scl_high_tout_en(unsigned int uscl_high_tout_en);
int iSetSMB_I2C_INTR_EN_pmbus_cmd_finish_en(unsigned int upmbus_cmd_finish_en);
int iSetSMB_I2C_INTR_EN_pec_rd_err_en(unsigned int upec_rd_err_en);
int iSetSMB_I2C_INTR_EN_arp_cmd_err_en(unsigned int uarp_cmd_err_en);
int iSetSMB_I2C_INTR_RAW_rx_under(unsigned int urx_under);
int iSetSMB_I2C_INTR_RAW_rx_over(unsigned int urx_over);
int iSetSMB_I2C_INTR_RAW_rx_full(unsigned int urx_full);
int iSetSMB_I2C_INTR_RAW_tx_over(unsigned int utx_over);
int iSetSMB_I2C_INTR_RAW_tx_empty(unsigned int utx_empty);
int iSetSMB_I2C_INTR_RAW_rd_req(unsigned int urd_req);
int iSetSMB_I2C_INTR_RAW_tx_abrt(unsigned int utx_abrt);
int iSetSMB_I2C_INTR_RAW_tx_done(unsigned int utx_done);
int iSetSMB_I2C_INTR_RAW_activity(unsigned int uactivity);
int iSetSMB_I2C_INTR_RAW_stop_det(unsigned int ustop_det);
int iSetSMB_I2C_INTR_RAW_start_det(unsigned int ustart_det);
int iSetSMB_I2C_INTR_RAW_gen_call(unsigned int ugen_call);
int iSetSMB_I2C_INTR_RAW_alert_det(unsigned int ualert_det);
int iSetSMB_I2C_INTR_RAW_slv_data_receive(unsigned int uslv_data_receive);
int iSetSMB_I2C_INTR_RAW_slv_addr_received(unsigned int uslv_addr_received);
int iSetSMB_I2C_INTR_RAW_scl_low_tout(unsigned int uscl_low_tout);
int iSetSMB_I2C_INTR_RAW_scl_high_tout(unsigned int uscl_high_tout);
int iSetSMB_I2C_INTR_RAW_pmbus_cmd_finish(unsigned int upmbus_cmd_finish);
int iSetSMB_I2C_INTR_RAW_pec_rd_err(unsigned int upec_rd_err);
int iSetSMB_I2C_INTR_RAW_arp_cmd_err(unsigned int uarp_cmd_err);
int iSetSMB_I2C_RX_TL_rx_tl(unsigned int urx_tl);
int iSetSMB_I2C_TX_TL_tx_tl(unsigned int utx_tl);
int iSetSMB_I2C_ENABLE_enable(unsigned int uenable);
int iSetSMB_I2C_STATUS_i2c_activity(unsigned int ui2c_activity);
int iSetSMB_I2C_STATUS_tx_fifo_nfull(unsigned int utx_fifo_nfull);
int iSetSMB_I2C_STATUS_tx_fifo_empty(unsigned int utx_fifo_empty);
int iSetSMB_I2C_STATUS_rx_fifo_nempty(unsigned int urx_fifo_nempty);
int iSetSMB_I2C_STATUS_rx_fifo_full(unsigned int urx_fifo_full);
int iSetSMB_I2C_STATUS_timeout_sda(unsigned int utimeout_sda);
int iSetSMB_I2C_STATUS_timeout_scl(unsigned int utimeout_scl);
int iSetSMB_I2C_STATUS_bus_busy(unsigned int ubus_busy);
int iSetSMB_I2C_STATUS_alert_status(unsigned int ualert_status);
int iSetSMB_I2C_STATUS_sda_in(unsigned int usda_in);
int iSetSMB_I2C_STATUS_scl_in(unsigned int uscl_in);
int iSetSMB_I2C_STATUS_mst_activity(unsigned int umst_activity);
int iSetSMB_I2C_STATUS_mst_cur_fsm(unsigned int umst_cur_fsm);
int iSetSMB_I2C_STATUS_mst_timeout_fsm(unsigned int umst_timeout_fsm);
int iSetSMB_I2C_STATUS_slv_activity(unsigned int uslv_activity);
int iSetSMB_I2C_STATUS_slv_cur_fsm(unsigned int uslv_cur_fsm);
int iSetSMB_I2C_STATUS_slv_timeout_fsm(unsigned int uslv_timeout_fsm);
int iSetSMB_I2C_TXFLR_tx_flr(unsigned int utx_flr);
int iSetSMB_I2C_RXFLR_rx_flr(unsigned int urx_flr);
int iSetSMB_I2C_SDA_HOLD_sda_hold(unsigned int usda_hold);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_7b_addr_noack(unsigned int uabrt_7b_addr_noack);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_10addr1_noack(unsigned int uabrt_10addr1_noack);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_10addr2_noack(unsigned int uabrt_10addr2_noack);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_txdata_noack(unsigned int uabrt_txdata_noack);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_gcall_noack(unsigned int uabrt_gcall_noack);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_gcall_read(unsigned int uabrt_gcall_read);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_hs_ackdet(unsigned int uabrt_hs_ackdet);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_sbyte_ackdet(unsigned int uabrt_sbyte_ackdet);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_hs_norstrt(unsigned int uabrt_hs_norstrt);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_sbyte_norstrt(unsigned int uabrt_sbyte_norstrt);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_10b_rd_norstrt(unsigned int uabrt_10b_rd_norstrt);
int iSetSMB_I2C_TX_ABRT_SRC_arb_lost(unsigned int uarb_lost);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_slvflush_txfifo(unsigned int uabrt_slvflush_txfifo);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_slv_lft(unsigned int uabrt_slv_lft);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_slvrd_intx(unsigned int uabrt_slvrd_intx);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_slv_stop(unsigned int uabrt_slv_stop);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_slv_alert(unsigned int uabrt_slv_alert);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_slv_pec(unsigned int uabrt_slv_pec);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_nack_pec(unsigned int uabrt_nack_pec);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_mst_comb(unsigned int uabrt_mst_comb);
int iSetSMB_I2C_TX_ABRT_SRC_abrt_mst_alert(unsigned int uabrt_mst_alert);
int iSetSMB_I2C_SDA_SETUP_sda_setup(unsigned int usda_setup);
int iSetSMB_I2C_ACK_GENERAL_CALL_ack_gen_call(unsigned int uack_gen_call);
int iSetSMB_I2C_ENABLE_STATUS_i2c_en(unsigned int ui2c_en);
int iSetSMB_I2C_ENABLE_STATUS_slv_disable_while_busy(unsigned int uslv_disable_while_busy);
int iSetSMB_I2C_ENABLE_STATUS_slv_rx_lost(unsigned int uslv_rx_lost);
int iSetSMB_I2C_SCL_SWITCH_scl_switch(unsigned int uscl_switch);
int iSetSMB_I2C_SCL_SIM_scl_sim(unsigned int uscl_sim);
int iSetSMB_I2C_LPIF_STATE_i2c_lpif_state(unsigned int ui2c_lpif_state);
int iSetSMB_I2C_LOCK_i2c_lock(unsigned int ui2c_lock);
int iSetSMB_I2C_SDA_SWITCH_sda_switch(unsigned int usda_switch);
int iSetSMB_I2C_SDA_SIM_sda_sim(unsigned int usda_sim);
int iSetSMB_I2C_SAR_MASK_i2c_sar_mask(unsigned int ui2c_sar_mask);
int iSetSMB_I2C_PMBUS_CTRL_ack_mode(unsigned int uack_mode);
int iSetSMB_I2C_PMBUS_CTRL_alert_en(unsigned int ualert_en);
int iSetSMB_I2C_PMBUS_CTRL_pec_en(unsigned int upec_en);
int iSetSMB_I2C_PMBUS_CTRL_arp_en(unsigned int uarp_en);
int iSetSMB_I2C_LOW_TIMEOUT_i2c_low_timeout(unsigned int ui2c_low_timeout);
int iSetSMB_I2C_HIGH_TIMEOUT_i2c_high_timeout(unsigned int ui2c_high_timeout);
int iSetSMB_I2C_SLV_ALERT_SET_alert_set(unsigned int ualert_set);
int iSetSMB_I2C_MST_ALERT_DO_alert_do(unsigned int ualert_do);
int iSetSMB_I2C_ACK_RESP_ack_resp(unsigned int uack_resp);
int iSetSMB_I2C_PEC_INFO_pec_receive(unsigned int upec_receive);
int iSetSMB_I2C_PEC_INFO_pec_valid(unsigned int upec_valid);
int iSetSMB_I2C_PEC_INFO_pec_check(unsigned int upec_check);
int iSetSMB_I2C_PEC_INFO_pec_err_info(unsigned int upec_err_info);
int iSetSMB_I2C_ADDR_RECEIVE_slv_addr_receive(unsigned int uslv_addr_receive);
int iSetSMB_I2C_MANU_ACK_CNT_i2c_manu_ack_cnt(unsigned int ui2c_manu_ack_cnt);
int iSetSMB_I2C_GRP_CMD_group_cmd_en(unsigned int ugroup_cmd_en);
int iSetSMB_I2C_PMBUS_SCL_DET_scl_idle_det_en(unsigned int uscl_idle_det_en);
int iSetSMB_I2C_PMBUS_SCL_DET_scl_ltimeout_en(unsigned int uscl_ltimeout_en);
int iSetSMB_I2C_PMBUS_SCL_DET_scl_htimeout_en(unsigned int uscl_htimeout_en);
int iSetSMB_I2C_PMBUS_IDLECNT_pmbus_idle_cnt(unsigned int upmbus_idle_cnt);
int iSetSMB_I2C_PMBUS_RST_srst(unsigned int usrst);
int iSetSMB_I2C_TX_INFO_i2c_addr_or_data(unsigned int ui2c_addr_or_data);
int iSetSMB_I2C_TX_INFO_i2c_cmd(unsigned int ui2c_cmd);
int iSetSMB_I2C_TX_INFO_i2c_addr_en(unsigned int ui2c_addr_en);
int iSetSMB_I2C_TX_INFO_i2c_stop_en(unsigned int ui2c_stop_en);
int iSetSMB_I2C_TX_CNT_i2c_tx_cnt(unsigned int ui2c_tx_cnt);
int iSetSMB_I2C_TRIGGER_EN_i2c_trigger_en(unsigned int ui2c_trigger_en);
int iSetSMB_UDID_0_vendor_spec_id(unsigned int uvendor_spec_id);
int iSetSMB_UDID_1_subsys_device_id(unsigned int usubsys_device_id);
int iSetSMB_UDID_1_subsys_vendor_id(unsigned int usubsys_vendor_id);
int iSetSMB_UDID_2_smbus_version(unsigned int usmbus_version);
int iSetSMB_UDID_2_support_protocol(unsigned int usupport_protocol);
int iSetSMB_UDID_2_device_id(unsigned int udevice_id);
int iSetSMB_UDID_3_vendor_id(unsigned int uvendor_id);
int iSetSMB_UDID_3_silicon_revision_id(unsigned int usilicon_revision_id);
int iSetSMB_UDID_3_udid_version(unsigned int uudid_version);
int iSetSMB_UDID_3_arp_pec_en(unsigned int uarp_pec_en);
int iSetSMB_UDID_3_addr_type(unsigned int uaddr_type);
int iSetSMB_ARP_ADDR_arp_addr(unsigned int uarp_addr);
int iSetSMB_PSA_smb_psa(unsigned int usmb_psa);
int iSetSMB_NOTIFY_DO_notify_do(unsigned int unotify_do);
int iSetSMB_ARP_INFO_av_flg(unsigned int uav_flg);
int iSetSMB_ARP_INFO_ar_flg(unsigned int uar_flg);
int iSetSMB_ARP_INFO_arp_done(unsigned int uarp_done);
int iSetSMB_ARP_INFO_arp_cmd_err(unsigned int uarp_cmd_err);
int iSetSMB_ARP_INFO_rxed_wrong_cmd(unsigned int urxed_wrong_cmd);


/* Define the union csr_ic_con_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 master : 1;                       /* [0] */
        u32 speed : 2;                        /* [2:1] */
        u32 slave_10bit : 1;                  /* [3] */
        u32 master_10bit : 1;                 /* [4] */
        u32 restart_en : 1;                   /* [5] */
        u32 slave_disable : 1;                /* [6] */
        u32 stop_det_ifaddressed : 1;         /* [7] */
        u32 tx_empty_ctrl : 1;                /* [8] */
        u32 rx_fifo_full_hld_ctrl : 1;        /* [9] */
        u32 stop_det_if_master_active : 1;    /* [10] */
        u32 bus_clear_feature_ctrl : 1;       /* [11] */
        u32 rsv_0 : 4;                        /* [15:12] */
        u32 optional_sar_ctrl : 1;            /* [16] */
        u32 smbus_slave_quick_en : 1;         /* [17] */
        u32 smbus_arp_en : 1;                 /* [18] */
        u32 smbus_persistent_slv_addr_en : 1; /* [19] */
        u32 rsv_1 : 12;                       /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_con_u;

/* Define the union csr_ic_tar_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_tar : 10;             /* [9:0] */
        u32 gc_or_start : 1;         /* [10] */
        u32 special : 1;             /* [11] */
        u32 ic_10bitaddr_master : 1; /* [12] */
        u32 device_id_in_tar : 1;    /* [13] */
        u32 rsv_2 : 2;               /* [15:14] */
        u32 smbus_quick_cmd : 1;     /* [16] */
        u32 rsv_3 : 15;              /* [31:17] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_tar_u;

/* Define the union csr_ic_sar_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_sar : 10; /* [9:0] */
        u32 rsv_4 : 22;  /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_sar_u;

/* Define the union csr_ic_hs_maddr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_hs_mar : 3; /* [2:0] */
        u32 rsv_5 : 29;    /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_hs_maddr_u;

/* Define the union csr_ic_data_cmd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dat : 8;             /* [7:0] */
        u32 cmd : 1;             /* [8] */
        u32 stop : 1;            /* [9] */
        u32 restart : 1;         /* [10] */
        u32 first_data_byte : 1; /* [11] */
        u32 rsv_6 : 20;          /* [31:12] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_data_cmd_u;

/* Define the union csr_ic_ss_scl_hcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_ss_scl_hcnt : 16; /* [15:0] */
        u32 rsv_7 : 16;          /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_ss_scl_hcnt_u;

/* Define the union csr_ic_ss_scl_lcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_ss_scl_lcnt : 16; /* [15:0] */
        u32 rsv_8 : 16;          /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_ss_scl_lcnt_u;

/* Define the union csr_ic_fs_scl_hcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_fs_scl_hcnt : 16; /* [15:0] */
        u32 rsv_9 : 16;          /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_fs_scl_hcnt_u;

/* Define the union csr_ic_fs_scl_lcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_fs_scl_lcnt : 16; /* [15:0] */
        u32 rsv_10 : 16;         /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_fs_scl_lcnt_u;

/* Define the union csr_ic_hs_scl_hcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_hs_scl_hcnt : 16; /* [15:0] */
        u32 rsv_11 : 16;         /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_hs_scl_hcnt_u;

/* Define the union csr_ic_hs_scl_lcnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_hs_scl_lcnt : 16; /* [15:0] */
        u32 rsv_12 : 16;         /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_hs_scl_lcnt_u;

/* Define the union csr_ic_intr_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 r_rx_under : 1;         /* [0] */
        u32 r_rx_over : 1;          /* [1] */
        u32 r_rx_full : 1;          /* [2] */
        u32 r_tx_over : 1;          /* [3] */
        u32 r_tx_empty : 1;         /* [4] */
        u32 r_rd_req : 1;           /* [5] */
        u32 r_tx_abrt : 1;          /* [6] */
        u32 r_rx_done : 1;          /* [7] */
        u32 r_activity : 1;         /* [8] */
        u32 r_stop_det : 1;         /* [9] */
        u32 r_start_det : 1;        /* [10] */
        u32 r_gen_call : 1;         /* [11] */
        u32 r_restart_det : 1;      /* [12] */
        u32 r_mst_on_hold : 1;      /* [13] */
        u32 r_scl_stuck_at_low : 1; /* [14] */
        u32 rsv_13 : 17;            /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_intr_stat_u;

/* Define the union csr_ic_intr_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 m_rx_under : 1;         /* [0] */
        u32 m_rx_over : 1;          /* [1] */
        u32 m_rx_full : 1;          /* [2] */
        u32 m_tx_over : 1;          /* [3] */
        u32 m_tx_empty : 1;         /* [4] */
        u32 m_rd_req : 1;           /* [5] */
        u32 m_tx_abrt : 1;          /* [6] */
        u32 m_rx_done : 1;          /* [7] */
        u32 m_activity : 1;         /* [8] */
        u32 m_stop_det : 1;         /* [9] */
        u32 m_start_det : 1;        /* [10] */
        u32 m_gen_call : 1;         /* [11] */
        u32 m_restart_det : 1;      /* [12] */
        u32 m_mst_on_hold : 1;      /* [13] */
        u32 m_scl_stuck_at_low : 1; /* [14] */
        u32 rsv_14 : 17;            /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_intr_mask_u;

/* Define the union csr_ic_raw_intr_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_under : 1;         /* [0] */
        u32 rx_over : 1;          /* [1] */
        u32 rx_full : 1;          /* [2] */
        u32 tx_over : 1;          /* [3] */
        u32 tx_empty : 1;         /* [4] */
        u32 rd_req : 1;           /* [5] */
        u32 tx_abrt : 1;          /* [6] */
        u32 rx_done : 1;          /* [7] */
        u32 activity : 1;         /* [8] */
        u32 stop_det : 1;         /* [9] */
        u32 start_det : 1;        /* [10] */
        u32 gen_call : 1;         /* [11] */
        u32 restart_det : 1;      /* [12] */
        u32 mst_on_hold : 1;      /* [13] */
        u32 scl_stuck_at_low : 1; /* [14] */
        u32 rsv_15 : 17;          /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_raw_intr_stat_u;

/* Define the union csr_ic_rx_tl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_tl : 8;   /* [7:0] */
        u32 rsv_16 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_rx_tl_u;

/* Define the union csr_ic_tx_tl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_tl : 8;   /* [7:0] */
        u32 rsv_17 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_tx_tl_u;

/* Define the union csr_ic_clr_intr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_intr : 1; /* [0] */
        u32 rsv_18 : 31;  /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_intr_u;

/* Define the union csr_ic_clr_rx_under_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_rx_under : 1; /* [0] */
        u32 rsv_19 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_rx_under_u;

/* Define the union csr_ic_clr_rx_over_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_rx_over : 1; /* [0] */
        u32 rsv_20 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_rx_over_u;

/* Define the union csr_ic_clr_tx_over_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_tx_over : 1; /* [0] */
        u32 rsv_21 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_tx_over_u;

/* Define the union csr_ic_clr_rd_req_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_rd_req : 1; /* [0] */
        u32 rsv_22 : 31;    /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_rd_req_u;

/* Define the union csr_ic_clr_tx_abrt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_tx_abrt : 1; /* [0] */
        u32 rsv_23 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_tx_abrt_u;

/* Define the union csr_ic_clr_rx_done_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_rx_done : 1; /* [0] */
        u32 rsv_24 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_rx_done_u;

/* Define the union csr_ic_clr_activity_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_activity : 1; /* [0] */
        u32 rsv_25 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_activity_u;

/* Define the union csr_ic_clr_stop_det_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_stop_det : 1; /* [0] */
        u32 rsv_26 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_stop_det_u;

/* Define the union csr_ic_clr_start_det_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_start_det : 1; /* [0] */
        u32 rsv_27 : 31;       /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_start_det_u;

/* Define the union csr_ic_clr_gen_call_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_gen_call : 1; /* [0] */
        u32 rsv_28 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_gen_call_u;

/* Define the union csr_ic_enable_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 enable : 1;                    /* [0] */
        u32 abort : 1;                     /* [1] */
        u32 tx_cmd_block : 1;              /* [2] */
        u32 sda_stuck_recovery_enable : 1; /* [3] */
        u32 rsv_29 : 12;                   /* [15:4] */
        u32 smbus_clk_reset : 1;           /* [16] */
        u32 smbus_suspend_en : 1;          /* [17] */
        u32 smbus_alert_en : 1;            /* [18] */
        u32 rsv_30 : 13;                   /* [31:19] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_enable_u;

/* Define the union csr_ic_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 activity_s : 1;                /* [0] */
        u32 tfnf : 1;                      /* [1] */
        u32 tfe : 1;                       /* [2] */
        u32 rfne : 1;                      /* [3] */
        u32 rff : 1;                       /* [4] */
        u32 mst_activity : 1;              /* [5] */
        u32 slv_activity : 1;              /* [6] */
        u32 mst_hold_tx_fifo_empty : 1;    /* [7] */
        u32 mst_hold_rx_fifo_full : 1;     /* [8] */
        u32 slv_hold_tx_fifo_empty : 1;    /* [9] */
        u32 slv_hold_rx_fifo_full : 1;     /* [10] */
        u32 sda_stuck_not_recovered : 1;   /* [11] */
        u32 rsv_31 : 4;                    /* [15:12] */
        u32 smbus_quick_cmd_bit : 1;       /* [16] */
        u32 smbus_slave_addr_valid : 1;    /* [17] */
        u32 smbus_slave_addr_resolved : 1; /* [18] */
        u32 smbus_suspend_status : 1;      /* [19] */
        u32 smbus_alert_status : 1;        /* [20] */
        u32 rsv_32 : 11;                   /* [31:21] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_status_u;

/* Define the union csr_ic_txflr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txflr : 8;   /* [7:0] */
        u32 rsv_33 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_txflr_u;

/* Define the union csr_ic_rxflr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rxflr : 8;   /* [7:0] */
        u32 rsv_34 : 24; /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_rxflr_u;

/* Define the union csr_ic_sda_hold_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_sda_tx_hold : 16; /* [15:0] */
        u32 ic_sda_rx_hold : 8;  /* [23:16] */
        u32 rsv_35 : 8;          /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_sda_hold_u;

/* Define the union csr_ic_tx_abrt_source_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 abrt_7b_addr_noack : 1;        /* [0] */
        u32 abrt_10addr1_noack : 1;        /* [1] */
        u32 abrt_10addr2_noack : 1;        /* [2] */
        u32 abrt_txdata_noack : 1;         /* [3] */
        u32 abrt_gcall_noack : 1;          /* [4] */
        u32 abrt_gcall_read : 1;           /* [5] */
        u32 abrt_hs_ackdet : 1;            /* [6] */
        u32 abrt_sbyte_ackdet : 1;         /* [7] */
        u32 abrt_hs_norstrt : 1;           /* [8] */
        u32 abrt_sbyte_norstrt : 1;        /* [9] */
        u32 abrt_10b_rd_norstrt : 1;       /* [10] */
        u32 arb_master_dis : 1;            /* [11] */
        u32 arb_lost : 1;                  /* [12] */
        u32 abrt_slvflush_txfifo : 1;      /* [13] */
        u32 abrt_slv_arblost : 1;          /* [14] */
        u32 abrt_slvrd_intx : 1;           /* [15] */
        u32 abrt_user_abrt : 1;            /* [16] */
        u32 abrt_sda_stuck_at_low : 1;     /* [17] */
        u32 abrt_device_noack : 1;         /* [18] */
        u32 abrt_device_slvaddr_noack : 1; /* [19] */
        u32 abrt_device_write : 1;         /* [20] */
        u32 rsv_36 : 2;                    /* [22:21] */
        u32 tx_flush_cnt : 9;              /* [31:23] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_tx_abrt_source_u;

/* Define the union csr_ic_slv_data_only_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 nack : 1;    /* [0] */
        u32 rsv_37 : 31; /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_slv_data_only_u;

/* Define the union csr_ic_sda_setup_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sda_setup : 8; /* [7:0] */
        u32 rsv_38 : 24;   /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_sda_setup_u;

/* Define the union csr_ic_ack_general_call_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ack_gen_call : 1; /* [0] */
        u32 rsv_39 : 31;      /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_ack_general_call_u;

/* Define the union csr_ic_enable_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_en : 1;                  /* [0] */
        u32 slv_disable_while_busy : 1; /* [1] */
        u32 slv_rx_data_lost : 1;       /* [2] */
        u32 rsv_40 : 29;                /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_enable_status_u;

/* Define the union csr_ic_fs_spklen_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_fs_spklen : 8; /* [7:0] */
        u32 rsv_41 : 24;      /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_fs_spklen_u;

/* Define the union csr_ic_scl_stuck_at_low_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_scl_stuck_low_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_scl_stuck_at_low_timeout_u;

/* Define the union csr_ic_sda_stuck_at_low_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_sda_stuck_low_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_sda_stuck_at_low_timeout_u;

/* Define the union csr_ic_clr_scl_stuck_det_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_scl_stuck_det : 1; /* [0] */
        u32 rsv_42 : 31;           /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_scl_stuck_det_u;

/* Define the union csr_ic_smbus_clk_low_sext_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smbus_clk_low_sext_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_clk_low_sext_u;

/* Define the union csr_ic_smbus_clk_low_mext_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smbus_clk_low_mext_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_clk_low_mext_u;

/* Define the union csr_ic_smbus_thigh_max_idle_count_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smbus_thigh_max_bus_idle_cnt : 16; /* [15:0] */
        u32 rsv_43 : 16;                       /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_thigh_max_idle_count_u;

/* Define the union csr_ic_smbus_intr_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 r_slv_clock_extnd_timeout : 1; /* [0] */
        u32 r_mst_clock_extnd_timeout : 1; /* [1] */
        u32 r_quick_cmd_det : 1;           /* [2] */
        u32 r_host_notify_mst_det : 1;     /* [3] */
        u32 r_arp_prepare_cmd_det : 1;     /* [4] */
        u32 r_arp_rst_cmd_det : 1;         /* [5] */
        u32 r_arp_get_udid_cmd_det : 1;    /* [6] */
        u32 r_arp_assgn_addr_cmd_det : 1;  /* [7] */
        u32 r_slv_rx_pec_nack : 1;         /* [8] */
        u32 r_smbus_suspend_det : 1;       /* [9] */
        u32 r_smbus_alert_det : 1;         /* [10] */
        u32 rsv_44 : 21;                   /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_intr_stat_u;

/* Define the union csr_ic_smbus_intr_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 m_slv_clock_extnd_timeout : 1; /* [0] */
        u32 m_mst_clock_extnd_timeout : 1; /* [1] */
        u32 m_quick_cmd_det : 1;           /* [2] */
        u32 m_host_notify_mst_det : 1;     /* [3] */
        u32 m_arp_prepare_cmd_det : 1;     /* [4] */
        u32 m_arp_rst_cmd_det : 1;         /* [5] */
        u32 m_arp_get_udid_cmd_det : 1;    /* [6] */
        u32 m_arp_assgn_addr_cmd_det : 1;  /* [7] */
        u32 m_slv_rx_pec_nack : 1;         /* [8] */
        u32 m_smbus_suspend_det : 1;       /* [9] */
        u32 m_smbus_alert_det : 1;         /* [10] */
        u32 rsv_45 : 21;                   /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_intr_mask_u;

/* Define the union csr_ic_smbus_raw_intr_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ri_slv_clock_extnd_timeout : 1; /* [0] */
        u32 ri_mst_clock_extnd_timeout : 1; /* [1] */
        u32 ri_quick_cmd_det : 1;           /* [2] */
        u32 ri_host_notify_mst_det : 1;     /* [3] */
        u32 ri_arp_prepare_cmd_det : 1;     /* [4] */
        u32 ri_arp_rst_cmd_det : 1;         /* [5] */
        u32 ri_arp_get_udid_cmd_det : 1;    /* [6] */
        u32 ri_arp_assgn_addr_cmd_det : 1;  /* [7] */
        u32 ri_slv_rx_pec_nack : 1;         /* [8] */
        u32 ri_smbus_suspend_det : 1;       /* [9] */
        u32 ri_smbus_alert_det : 1;         /* [10] */
        u32 rsv_46 : 21;                    /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_raw_intr_stat_u;

/* Define the union csr_ic_clr_smbus_intr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 clr_slv_clock_extnd_timeout : 1; /* [0] */
        u32 clr_mst_clock_extnd_timeout : 1; /* [1] */
        u32 clr_quick_cmd_det : 1;           /* [2] */
        u32 clr_host_notify_mst_det : 1;     /* [3] */
        u32 clr_arp_prepare_cmd_det : 1;     /* [4] */
        u32 clr_arp_rst_cmd_det : 1;         /* [5] */
        u32 clr_arp_get_udid_cmd_det : 1;    /* [6] */
        u32 clr_arp_assgn_addr_cmd_det : 1;  /* [7] */
        u32 clr_slv_rx_pec_nack : 1;         /* [8] */
        u32 clr_smbus_suspend_det : 1;       /* [9] */
        u32 clr_smbus_alert_det : 1;         /* [10] */
        u32 rsv_47 : 21;                     /* [31:11] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_clr_smbus_intr_u;

/* Define the union csr_ic_smbus_udid_lsb_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smbus_udid_lsb : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_udid_lsb_u;

/* Define the union csr_ic_comp_param_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 apb_data_width : 2;     /* [1:0] */
        u32 max_speed_mode : 2;     /* [3:2] */
        u32 hc_count_values : 1;    /* [4] */
        u32 intr_io : 1;            /* [5] */
        u32 has_dma : 1;            /* [6] */
        u32 add_encoded_params : 1; /* [7] */
        u32 rx_buffer_depth : 8;    /* [15:8] */
        u32 tx_buffer_depth : 8;    /* [23:16] */
        u32 rsv_48 : 8;             /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_comp_param_1_u;

/* Define the union csr_ic_comp_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_comp_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_comp_version_u;

/* Define the union csr_ic_comp_type_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_comp_type : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_comp_type_u;

/* Define the union csr_ic_smbus_udid_msb0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_smbus_udid_msb0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_udid_msb0_u;

/* Define the union csr_ic_smbus_udid_msb1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_smbus_udid_msb1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_udid_msb1_u;

/* Define the union csr_ic_smbus_udid_msb2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ic_smbus_udid_msb2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ic_smbus_udid_msb2_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_ic_con_u ic_con;                                               /* 0 */
    volatile csr_ic_tar_u ic_tar;                                               /* 4 */
    volatile csr_ic_sar_u ic_sar;                                               /* 8 */
    volatile csr_ic_hs_maddr_u ic_hs_maddr;                                     /* C */
    volatile csr_ic_data_cmd_u ic_data_cmd;                                     /* 10 */
    volatile csr_ic_ss_scl_hcnt_u ic_ss_scl_hcnt;                               /* 14 */
    volatile csr_ic_ss_scl_lcnt_u ic_ss_scl_lcnt;                               /* 18 */
    volatile csr_ic_fs_scl_hcnt_u ic_fs_scl_hcnt;                               /* 1C */
    volatile csr_ic_fs_scl_lcnt_u ic_fs_scl_lcnt;                               /* 20 */
    volatile csr_ic_hs_scl_hcnt_u ic_hs_scl_hcnt;                               /* 24 */
    volatile csr_ic_hs_scl_lcnt_u ic_hs_scl_lcnt;                               /* 28 */
    volatile csr_ic_intr_stat_u ic_intr_stat;                                   /* 2C */
    volatile csr_ic_intr_mask_u ic_intr_mask;                                   /* 30 */
    volatile csr_ic_raw_intr_stat_u ic_raw_intr_stat;                           /* 34 */
    volatile csr_ic_rx_tl_u ic_rx_tl;                                           /* 38 */
    volatile csr_ic_tx_tl_u ic_tx_tl;                                           /* 3C */
    volatile csr_ic_clr_intr_u ic_clr_intr;                                     /* 40 */
    volatile csr_ic_clr_rx_under_u ic_clr_rx_under;                             /* 44 */
    volatile csr_ic_clr_rx_over_u ic_clr_rx_over;                               /* 48 */
    volatile csr_ic_clr_tx_over_u ic_clr_tx_over;                               /* 4C */
    volatile csr_ic_clr_rd_req_u ic_clr_rd_req;                                 /* 50 */
    volatile csr_ic_clr_tx_abrt_u ic_clr_tx_abrt;                               /* 54 */
    volatile csr_ic_clr_rx_done_u ic_clr_rx_done;                               /* 58 */
    volatile csr_ic_clr_activity_u ic_clr_activity;                             /* 5C */
    volatile csr_ic_clr_stop_det_u ic_clr_stop_det;                             /* 60 */
    volatile csr_ic_clr_start_det_u ic_clr_start_det;                           /* 64 */
    volatile csr_ic_clr_gen_call_u ic_clr_gen_call;                             /* 68 */
    volatile csr_ic_enable_u ic_enable;                                         /* 6C */
    volatile csr_ic_status_u ic_status;                                         /* 70 */
    volatile csr_ic_txflr_u ic_txflr;                                           /* 74 */
    volatile csr_ic_rxflr_u ic_rxflr;                                           /* 78 */
    volatile csr_ic_sda_hold_u ic_sda_hold;                                     /* 7C */
    volatile csr_ic_tx_abrt_source_u ic_tx_abrt_source;                         /* 80 */
    volatile csr_ic_slv_data_only_u ic_slv_data_only;                           /* 84 */
    volatile csr_ic_sda_setup_u ic_sda_setup;                                   /* 94 */
    volatile csr_ic_ack_general_call_u ic_ack_general_call;                     /* 98 */
    volatile csr_ic_enable_status_u ic_enable_status;                           /* 9C */
    volatile csr_ic_fs_spklen_u ic_fs_spklen;                                   /* A0 */
    volatile csr_ic_scl_stuck_at_low_timeout_u ic_scl_stuck_at_low_timeout;     /* AC */
    volatile csr_ic_sda_stuck_at_low_timeout_u ic_sda_stuck_at_low_timeout;     /* B0 */
    volatile csr_ic_clr_scl_stuck_det_u ic_clr_scl_stuck_det;                   /* B4 */
    volatile csr_ic_smbus_clk_low_sext_u ic_smbus_clk_low_sext;                 /* BC */
    volatile csr_ic_smbus_clk_low_mext_u ic_smbus_clk_low_mext;                 /* C0 */
    volatile csr_ic_smbus_thigh_max_idle_count_u ic_smbus_thigh_max_idle_count; /* C4 */
    volatile csr_ic_smbus_intr_stat_u ic_smbus_intr_stat;                       /* C8 */
    volatile csr_ic_smbus_intr_mask_u ic_smbus_intr_mask;                       /* CC */
    volatile csr_ic_smbus_raw_intr_stat_u ic_smbus_raw_intr_stat;               /* D0 */
    volatile csr_ic_clr_smbus_intr_u ic_clr_smbus_intr;                         /* D4 */
    volatile csr_ic_smbus_udid_lsb_u ic_smbus_udid_lsb;                         /* DC */
    volatile csr_ic_comp_param_1_u ic_comp_param_1;                             /* F4 */
    volatile csr_ic_comp_version_u ic_comp_version;                             /* F8 */
    volatile csr_ic_comp_type_u ic_comp_type;                                   /* FC */
    volatile csr_ic_smbus_udid_msb0_u ic_smbus_udid_msb0;                       /* E0 */
    volatile csr_ic_smbus_udid_msb1_u ic_smbus_udid_msb1;                       /* E4 */
    volatile csr_ic_smbus_udid_msb2_u ic_smbus_udid_msb2;                       /* E8 */
} S_smbus_new_cfg_REGS_TYPE;

/* Declare the struct pointor of the module smbus_new_cfg */
extern volatile S_smbus_new_cfg_REGS_TYPE *gopsmbus_new_cfgAllReg;

/* Declare the functions that set the member value */
int iSetIC_CON_master(unsigned int umaster);
int iSetIC_CON_speed(unsigned int uspeed);
int iSetIC_CON_slave_10bit(unsigned int uslave_10bit);
int iSetIC_CON_master_10bit(unsigned int umaster_10bit);
int iSetIC_CON_restart_en(unsigned int urestart_en);
int iSetIC_CON_slave_disable(unsigned int uslave_disable);
int iSetIC_CON_stop_det_ifaddressed(unsigned int ustop_det_ifaddressed);
int iSetIC_CON_tx_empty_ctrl(unsigned int utx_empty_ctrl);
int iSetIC_CON_rx_fifo_full_hld_ctrl(unsigned int urx_fifo_full_hld_ctrl);
int iSetIC_CON_stop_det_if_master_active(unsigned int ustop_det_if_master_active);
int iSetIC_CON_bus_clear_feature_ctrl(unsigned int ubus_clear_feature_ctrl);
int iSetIC_CON_optional_sar_ctrl(unsigned int uoptional_sar_ctrl);
int iSetIC_CON_smbus_slave_quick_en(unsigned int usmbus_slave_quick_en);
int iSetIC_CON_smbus_arp_en(unsigned int usmbus_arp_en);
int iSetIC_CON_smbus_persistent_slv_addr_en(unsigned int usmbus_persistent_slv_addr_en);
int iSetIC_TAR_ic_tar(unsigned int uic_tar);
int iSetIC_TAR_gc_or_start(unsigned int ugc_or_start);
int iSetIC_TAR_special(unsigned int uspecial);
int iSetIC_TAR_ic_10bitaddr_master(unsigned int uic_10bitaddr_master);
int iSetIC_TAR_device_id_in_tar(unsigned int udevice_id_in_tar);
int iSetIC_TAR_smbus_quick_cmd(unsigned int usmbus_quick_cmd);
int iSetIC_SAR_ic_sar(unsigned int uic_sar);
int iSetIC_HS_MADDR_ic_hs_mar(unsigned int uic_hs_mar);
int iSetIC_DATA_CMD_dat(unsigned int udat);
int iSetIC_DATA_CMD_cmd(unsigned int ucmd);
int iSetIC_DATA_CMD_stop(unsigned int ustop);
int iSetIC_DATA_CMD_restart(unsigned int urestart);
int iSetIC_DATA_CMD_first_data_byte(unsigned int ufirst_data_byte);
int iSetIC_SS_SCL_HCNT_ic_ss_scl_hcnt(unsigned int uic_ss_scl_hcnt);
int iSetIC_SS_SCL_LCNT_ic_ss_scl_lcnt(unsigned int uic_ss_scl_lcnt);
int iSetIC_FS_SCL_HCNT_ic_fs_scl_hcnt(unsigned int uic_fs_scl_hcnt);
int iSetIC_FS_SCL_LCNT_ic_fs_scl_lcnt(unsigned int uic_fs_scl_lcnt);
int iSetIC_HS_SCL_HCNT_ic_hs_scl_hcnt(unsigned int uic_hs_scl_hcnt);
int iSetIC_HS_SCL_LCNT_ic_hs_scl_lcnt(unsigned int uic_hs_scl_lcnt);
int iSetIC_INTR_STAT_r_rx_under(unsigned int ur_rx_under);
int iSetIC_INTR_STAT_r_rx_over(unsigned int ur_rx_over);
int iSetIC_INTR_STAT_r_rx_full(unsigned int ur_rx_full);
int iSetIC_INTR_STAT_r_tx_over(unsigned int ur_tx_over);
int iSetIC_INTR_STAT_r_tx_empty(unsigned int ur_tx_empty);
int iSetIC_INTR_STAT_r_rd_req(unsigned int ur_rd_req);
int iSetIC_INTR_STAT_r_tx_abrt(unsigned int ur_tx_abrt);
int iSetIC_INTR_STAT_r_rx_done(unsigned int ur_rx_done);
int iSetIC_INTR_STAT_r_activity(unsigned int ur_activity);
int iSetIC_INTR_STAT_r_stop_det(unsigned int ur_stop_det);
int iSetIC_INTR_STAT_r_start_det(unsigned int ur_start_det);
int iSetIC_INTR_STAT_r_gen_call(unsigned int ur_gen_call);
int iSetIC_INTR_STAT_r_restart_det(unsigned int ur_restart_det);
int iSetIC_INTR_STAT_r_mst_on_hold(unsigned int ur_mst_on_hold);
int iSetIC_INTR_STAT_r_scl_stuck_at_low(unsigned int ur_scl_stuck_at_low);
int iSetIC_INTR_MASK_m_rx_under(unsigned int um_rx_under);
int iSetIC_INTR_MASK_m_rx_over(unsigned int um_rx_over);
int iSetIC_INTR_MASK_m_rx_full(unsigned int um_rx_full);
int iSetIC_INTR_MASK_m_tx_over(unsigned int um_tx_over);
int iSetIC_INTR_MASK_m_tx_empty(unsigned int um_tx_empty);
int iSetIC_INTR_MASK_m_rd_req(unsigned int um_rd_req);
int iSetIC_INTR_MASK_m_tx_abrt(unsigned int um_tx_abrt);
int iSetIC_INTR_MASK_m_rx_done(unsigned int um_rx_done);
int iSetIC_INTR_MASK_m_activity(unsigned int um_activity);
int iSetIC_INTR_MASK_m_stop_det(unsigned int um_stop_det);
int iSetIC_INTR_MASK_m_start_det(unsigned int um_start_det);
int iSetIC_INTR_MASK_m_gen_call(unsigned int um_gen_call);
int iSetIC_INTR_MASK_m_restart_det(unsigned int um_restart_det);
int iSetIC_INTR_MASK_m_mst_on_hold(unsigned int um_mst_on_hold);
int iSetIC_INTR_MASK_m_scl_stuck_at_low(unsigned int um_scl_stuck_at_low);
int iSetIC_RAW_INTR_STAT_rx_under(unsigned int urx_under);
int iSetIC_RAW_INTR_STAT_rx_over(unsigned int urx_over);
int iSetIC_RAW_INTR_STAT_rx_full(unsigned int urx_full);
int iSetIC_RAW_INTR_STAT_tx_over(unsigned int utx_over);
int iSetIC_RAW_INTR_STAT_tx_empty(unsigned int utx_empty);
int iSetIC_RAW_INTR_STAT_rd_req(unsigned int urd_req);
int iSetIC_RAW_INTR_STAT_tx_abrt(unsigned int utx_abrt);
int iSetIC_RAW_INTR_STAT_rx_done(unsigned int urx_done);
int iSetIC_RAW_INTR_STAT_activity(unsigned int uactivity);
int iSetIC_RAW_INTR_STAT_stop_det(unsigned int ustop_det);
int iSetIC_RAW_INTR_STAT_start_det(unsigned int ustart_det);
int iSetIC_RAW_INTR_STAT_gen_call(unsigned int ugen_call);
int iSetIC_RAW_INTR_STAT_restart_det(unsigned int urestart_det);
int iSetIC_RAW_INTR_STAT_mst_on_hold(unsigned int umst_on_hold);
int iSetIC_RAW_INTR_STAT_scl_stuck_at_low(unsigned int uscl_stuck_at_low);
int iSetIC_RX_TL_rx_tl(unsigned int urx_tl);
int iSetIC_TX_TL_tx_tl(unsigned int utx_tl);
int iSetIC_CLR_INTR_clr_intr(unsigned int uclr_intr);
int iSetIC_CLR_RX_UNDER_clr_rx_under(unsigned int uclr_rx_under);
int iSetIC_CLR_RX_OVER_clr_rx_over(unsigned int uclr_rx_over);
int iSetIC_CLR_TX_OVER_clr_tx_over(unsigned int uclr_tx_over);
int iSetIC_CLR_RD_REQ_clr_rd_req(unsigned int uclr_rd_req);
int iSetIC_CLR_TX_ABRT_clr_tx_abrt(unsigned int uclr_tx_abrt);
int iSetIC_CLR_RX_DONE_clr_rx_done(unsigned int uclr_rx_done);
int iSetIC_CLR_ACTIVITY_clr_activity(unsigned int uclr_activity);
int iSetIC_CLR_STOP_DET_clr_stop_det(unsigned int uclr_stop_det);
int iSetIC_CLR_START_DET_clr_start_det(unsigned int uclr_start_det);
int iSetIC_CLR_GEN_CALL_clr_gen_call(unsigned int uclr_gen_call);
int iSetIC_ENABLE_enable(unsigned int uenable);
int iSetIC_ENABLE_abort(unsigned int uabort);
int iSetIC_ENABLE_tx_cmd_block(unsigned int utx_cmd_block);
int iSetIC_ENABLE_sda_stuck_recovery_enable(unsigned int usda_stuck_recovery_enable);
int iSetIC_ENABLE_smbus_clk_reset(unsigned int usmbus_clk_reset);
int iSetIC_ENABLE_smbus_suspend_en(unsigned int usmbus_suspend_en);
int iSetIC_ENABLE_smbus_alert_en(unsigned int usmbus_alert_en);
int iSetIC_STATUS_activity_s(unsigned int uactivity_s);
int iSetIC_STATUS_tfnf(unsigned int utfnf);
int iSetIC_STATUS_tfe(unsigned int utfe);
int iSetIC_STATUS_rfne(unsigned int urfne);
int iSetIC_STATUS_rff(unsigned int urff);
int iSetIC_STATUS_mst_activity(unsigned int umst_activity);
int iSetIC_STATUS_slv_activity(unsigned int uslv_activity);
int iSetIC_STATUS_mst_hold_tx_fifo_empty(unsigned int umst_hold_tx_fifo_empty);
int iSetIC_STATUS_mst_hold_rx_fifo_full(unsigned int umst_hold_rx_fifo_full);
int iSetIC_STATUS_slv_hold_tx_fifo_empty(unsigned int uslv_hold_tx_fifo_empty);
int iSetIC_STATUS_slv_hold_rx_fifo_full(unsigned int uslv_hold_rx_fifo_full);
int iSetIC_STATUS_sda_stuck_not_recovered(unsigned int usda_stuck_not_recovered);
int iSetIC_STATUS_smbus_quick_cmd_bit(unsigned int usmbus_quick_cmd_bit);
int iSetIC_STATUS_smbus_slave_addr_valid(unsigned int usmbus_slave_addr_valid);
int iSetIC_STATUS_smbus_slave_addr_resolved(unsigned int usmbus_slave_addr_resolved);
int iSetIC_STATUS_smbus_suspend_status(unsigned int usmbus_suspend_status);
int iSetIC_STATUS_smbus_alert_status(unsigned int usmbus_alert_status);
int iSetIC_TXFLR_txflr(unsigned int utxflr);
int iSetIC_RXFLR_rxflr(unsigned int urxflr);
int iSetIC_SDA_HOLD_ic_sda_tx_hold(unsigned int uic_sda_tx_hold);
int iSetIC_SDA_HOLD_ic_sda_rx_hold(unsigned int uic_sda_rx_hold);
int iSetIC_TX_ABRT_SOURCE_abrt_7b_addr_noack(unsigned int uabrt_7b_addr_noack);
int iSetIC_TX_ABRT_SOURCE_abrt_10addr1_noack(unsigned int uabrt_10addr1_noack);
int iSetIC_TX_ABRT_SOURCE_abrt_10addr2_noack(unsigned int uabrt_10addr2_noack);
int iSetIC_TX_ABRT_SOURCE_abrt_txdata_noack(unsigned int uabrt_txdata_noack);
int iSetIC_TX_ABRT_SOURCE_abrt_gcall_noack(unsigned int uabrt_gcall_noack);
int iSetIC_TX_ABRT_SOURCE_abrt_gcall_read(unsigned int uabrt_gcall_read);
int iSetIC_TX_ABRT_SOURCE_abrt_hs_ackdet(unsigned int uabrt_hs_ackdet);
int iSetIC_TX_ABRT_SOURCE_abrt_sbyte_ackdet(unsigned int uabrt_sbyte_ackdet);
int iSetIC_TX_ABRT_SOURCE_abrt_hs_norstrt(unsigned int uabrt_hs_norstrt);
int iSetIC_TX_ABRT_SOURCE_abrt_sbyte_norstrt(unsigned int uabrt_sbyte_norstrt);
int iSetIC_TX_ABRT_SOURCE_abrt_10b_rd_norstrt(unsigned int uabrt_10b_rd_norstrt);
int iSetIC_TX_ABRT_SOURCE_arb_master_dis(unsigned int uarb_master_dis);
int iSetIC_TX_ABRT_SOURCE_arb_lost(unsigned int uarb_lost);
int iSetIC_TX_ABRT_SOURCE_abrt_slvflush_txfifo(unsigned int uabrt_slvflush_txfifo);
int iSetIC_TX_ABRT_SOURCE_abrt_slv_arblost(unsigned int uabrt_slv_arblost);
int iSetIC_TX_ABRT_SOURCE_abrt_slvrd_intx(unsigned int uabrt_slvrd_intx);
int iSetIC_TX_ABRT_SOURCE_abrt_user_abrt(unsigned int uabrt_user_abrt);
int iSetIC_TX_ABRT_SOURCE_abrt_sda_stuck_at_low(unsigned int uabrt_sda_stuck_at_low);
int iSetIC_TX_ABRT_SOURCE_abrt_device_noack(unsigned int uabrt_device_noack);
int iSetIC_TX_ABRT_SOURCE_abrt_device_slvaddr_noack(unsigned int uabrt_device_slvaddr_noack);
int iSetIC_TX_ABRT_SOURCE_abrt_device_write(unsigned int uabrt_device_write);
int iSetIC_TX_ABRT_SOURCE_tx_flush_cnt(unsigned int utx_flush_cnt);
int iSetIC_SLV_DATA_ONLY_nack(unsigned int unack);
int iSetIC_SDA_SETUP_sda_setup(unsigned int usda_setup);
int iSetIC_ACK_GENERAL_CALL_ack_gen_call(unsigned int uack_gen_call);
int iSetIC_ENABLE_STATUS_ic_en(unsigned int uic_en);
int iSetIC_ENABLE_STATUS_slv_disable_while_busy(unsigned int uslv_disable_while_busy);
int iSetIC_ENABLE_STATUS_slv_rx_data_lost(unsigned int uslv_rx_data_lost);
int iSetIC_FS_SPKLEN_ic_fs_spklen(unsigned int uic_fs_spklen);
int iSetIC_SCL_STUCK_AT_LOW_TIMEOUT_ic_scl_stuck_low_timeout(unsigned int uic_scl_stuck_low_timeout);
int iSetIC_SDA_STUCK_AT_LOW_TIMEOUT_ic_sda_stuck_low_timeout(unsigned int uic_sda_stuck_low_timeout);
int iSetIC_CLR_SCL_STUCK_DET_clr_scl_stuck_det(unsigned int uclr_scl_stuck_det);
int iSetIC_SMBUS_CLK_LOW_SEXT_smbus_clk_low_sext_timeout(unsigned int usmbus_clk_low_sext_timeout);
int iSetIC_SMBUS_CLK_LOW_MEXT_smbus_clk_low_mext_timeout(unsigned int usmbus_clk_low_mext_timeout);
int iSetIC_SMBUS_THIGH_MAX_IDLE_COUNT_smbus_thigh_max_bus_idle_cnt(unsigned int usmbus_thigh_max_bus_idle_cnt);
int iSetIC_SMBUS_INTR_STAT_r_slv_clock_extnd_timeout(unsigned int ur_slv_clock_extnd_timeout);
int iSetIC_SMBUS_INTR_STAT_r_mst_clock_extnd_timeout(unsigned int ur_mst_clock_extnd_timeout);
int iSetIC_SMBUS_INTR_STAT_r_quick_cmd_det(unsigned int ur_quick_cmd_det);
int iSetIC_SMBUS_INTR_STAT_r_host_notify_mst_det(unsigned int ur_host_notify_mst_det);
int iSetIC_SMBUS_INTR_STAT_r_arp_prepare_cmd_det(unsigned int ur_arp_prepare_cmd_det);
int iSetIC_SMBUS_INTR_STAT_r_arp_rst_cmd_det(unsigned int ur_arp_rst_cmd_det);
int iSetIC_SMBUS_INTR_STAT_r_arp_get_udid_cmd_det(unsigned int ur_arp_get_udid_cmd_det);
int iSetIC_SMBUS_INTR_STAT_r_arp_assgn_addr_cmd_det(unsigned int ur_arp_assgn_addr_cmd_det);
int iSetIC_SMBUS_INTR_STAT_r_slv_rx_pec_nack(unsigned int ur_slv_rx_pec_nack);
int iSetIC_SMBUS_INTR_STAT_r_smbus_suspend_det(unsigned int ur_smbus_suspend_det);
int iSetIC_SMBUS_INTR_STAT_r_smbus_alert_det(unsigned int ur_smbus_alert_det);
int iSetIC_SMBUS_INTR_MASK_m_slv_clock_extnd_timeout(unsigned int um_slv_clock_extnd_timeout);
int iSetIC_SMBUS_INTR_MASK_m_mst_clock_extnd_timeout(unsigned int um_mst_clock_extnd_timeout);
int iSetIC_SMBUS_INTR_MASK_m_quick_cmd_det(unsigned int um_quick_cmd_det);
int iSetIC_SMBUS_INTR_MASK_m_host_notify_mst_det(unsigned int um_host_notify_mst_det);
int iSetIC_SMBUS_INTR_MASK_m_arp_prepare_cmd_det(unsigned int um_arp_prepare_cmd_det);
int iSetIC_SMBUS_INTR_MASK_m_arp_rst_cmd_det(unsigned int um_arp_rst_cmd_det);
int iSetIC_SMBUS_INTR_MASK_m_arp_get_udid_cmd_det(unsigned int um_arp_get_udid_cmd_det);
int iSetIC_SMBUS_INTR_MASK_m_arp_assgn_addr_cmd_det(unsigned int um_arp_assgn_addr_cmd_det);
int iSetIC_SMBUS_INTR_MASK_m_slv_rx_pec_nack(unsigned int um_slv_rx_pec_nack);
int iSetIC_SMBUS_INTR_MASK_m_smbus_suspend_det(unsigned int um_smbus_suspend_det);
int iSetIC_SMBUS_INTR_MASK_m_smbus_alert_det(unsigned int um_smbus_alert_det);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_slv_clock_extnd_timeout(unsigned int uri_slv_clock_extnd_timeout);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_mst_clock_extnd_timeout(unsigned int uri_mst_clock_extnd_timeout);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_quick_cmd_det(unsigned int uri_quick_cmd_det);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_host_notify_mst_det(unsigned int uri_host_notify_mst_det);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_arp_prepare_cmd_det(unsigned int uri_arp_prepare_cmd_det);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_arp_rst_cmd_det(unsigned int uri_arp_rst_cmd_det);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_arp_get_udid_cmd_det(unsigned int uri_arp_get_udid_cmd_det);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_arp_assgn_addr_cmd_det(unsigned int uri_arp_assgn_addr_cmd_det);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_slv_rx_pec_nack(unsigned int uri_slv_rx_pec_nack);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_smbus_suspend_det(unsigned int uri_smbus_suspend_det);
int iSetIC_SMBUS_RAW_INTR_STAT_ri_smbus_alert_det(unsigned int uri_smbus_alert_det);
int iSetIC_CLR_SMBUS_INTR_clr_slv_clock_extnd_timeout(unsigned int uclr_slv_clock_extnd_timeout);
int iSetIC_CLR_SMBUS_INTR_clr_mst_clock_extnd_timeout(unsigned int uclr_mst_clock_extnd_timeout);
int iSetIC_CLR_SMBUS_INTR_clr_quick_cmd_det(unsigned int uclr_quick_cmd_det);
int iSetIC_CLR_SMBUS_INTR_clr_host_notify_mst_det(unsigned int uclr_host_notify_mst_det);
int iSetIC_CLR_SMBUS_INTR_clr_arp_prepare_cmd_det(unsigned int uclr_arp_prepare_cmd_det);
int iSetIC_CLR_SMBUS_INTR_clr_arp_rst_cmd_det(unsigned int uclr_arp_rst_cmd_det);
int iSetIC_CLR_SMBUS_INTR_clr_arp_get_udid_cmd_det(unsigned int uclr_arp_get_udid_cmd_det);
int iSetIC_CLR_SMBUS_INTR_clr_arp_assgn_addr_cmd_det(unsigned int uclr_arp_assgn_addr_cmd_det);
int iSetIC_CLR_SMBUS_INTR_clr_slv_rx_pec_nack(unsigned int uclr_slv_rx_pec_nack);
int iSetIC_CLR_SMBUS_INTR_clr_smbus_suspend_det(unsigned int uclr_smbus_suspend_det);
int iSetIC_CLR_SMBUS_INTR_clr_smbus_alert_det(unsigned int uclr_smbus_alert_det);
int iSetIC_SMBUS_UDID_LSB_smbus_udid_lsb(unsigned int usmbus_udid_lsb);
int iSetIC_COMP_PARAM_1_apb_data_width(unsigned int uapb_data_width);
int iSetIC_COMP_PARAM_1_max_speed_mode(unsigned int umax_speed_mode);
int iSetIC_COMP_PARAM_1_hc_count_values(unsigned int uhc_count_values);
int iSetIC_COMP_PARAM_1_intr_io(unsigned int uintr_io);
int iSetIC_COMP_PARAM_1_has_dma(unsigned int uhas_dma);
int iSetIC_COMP_PARAM_1_add_encoded_params(unsigned int uadd_encoded_params);
int iSetIC_COMP_PARAM_1_rx_buffer_depth(unsigned int urx_buffer_depth);
int iSetIC_COMP_PARAM_1_tx_buffer_depth(unsigned int utx_buffer_depth);
int iSetIC_COMP_VERSION_ic_comp_version(unsigned int uic_comp_version);
int iSetIC_COMP_TYPE_ic_comp_type(unsigned int uic_comp_type);
int iSetIC_SMBUS_UDID_MSB0_ic_smbus_udid_msb0(unsigned int uic_smbus_udid_msb0);
int iSetIC_SMBUS_UDID_MSB1_ic_smbus_udid_msb1(unsigned int uic_smbus_udid_msb1);
int iSetIC_SMBUS_UDID_MSB2_ic_smbus_udid_msb2(unsigned int uic_smbus_udid_msb2);

/* Define the union csr_shm_init_chk_mode_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_mode : 1; /* [0] */
        u32 rsv_0 : 31;        /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_mode_u;

/* Define the union csr_shm_init_chk_start_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_start : 1; /* [0] */
        u32 rsv_1 : 31;         /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_start_u;

/* Define the union csr_shm_init_chk_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_done : 1; /* [0] */
        u32 rsv_2 : 31;        /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_stat_u;

/* Define the union csr_shm_int_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sbit_err_int_stat : 1; /* [0] */
        u32 mbit_err_int_stat : 1; /* [1] */
        u32 addr_out_int_stat : 1; /* [2] */
        u32 eco_rsv0_int_stat : 1; /* [3] */
        u32 eco_rsv1_int_stat : 1; /* [4] */
        u32 rsv_3 : 27;            /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_int_stat_u;

/* Define the union csr_shm_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sbit_err_int_en : 1; /* [0] */
        u32 mbit_err_int_en : 1; /* [1] */
        u32 addr_out_int_en : 1; /* [2] */
        u32 eco_rsv0_int_en : 1; /* [3] */
        u32 eco_rsv1_int_en : 1; /* [4] */
        u32 rsv_4 : 27;          /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_int_en_u;

/* Define the union csr_shm_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sbit_err_int_set : 1; /* [0] */
        u32 mbit_err_int_set : 1; /* [1] */
        u32 addr_out_int_set : 1; /* [2] */
        u32 eco_rsv0_int_set : 1; /* [3] */
        u32 eco_rsv1_int_set : 1; /* [4] */
        u32 rsv_5 : 27;           /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_int_set_u;

/* Define the union csr_shm_raw_stat_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sbit_err_raw_stat : 1; /* [0] */
        u32 mbit_err_raw_stat : 1; /* [1] */
        u32 addr_out_raw_stat : 1; /* [2] */
        u32 eco_rsv0_raw_stat : 1; /* [3] */
        u32 eco_rsv1_raw_stat : 1; /* [4] */
        u32 rsv_6 : 27;            /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_raw_stat_u;

/* Define the union csr_shm_init_chk_saddr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_start_addr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_saddr_u;

/* Define the union csr_shm_init_chk_len_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_len : 19; /* [18:0] */
        u32 rsv_7 : 13;        /* [31:19] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_len_u;

/* Define the union csr_shm_init_chk_ldata_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_low_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_ldata_u;

/* Define the union csr_shm_init_chk_hdata_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_high_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_hdata_u;

/* Define the union csr_shm_ecc_bypass_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ecc_bypass : 1; /* [0] */
        u32 rsv_8 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_ecc_bypass_u;

/* Define the union csr_shm_ecc_insr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bank0_sb_err_insr : 1; /* [0] */
        u32 bank0_mb_err_insr : 1; /* [1] */
        u32 bank1_sb_err_insr : 1; /* [2] */
        u32 bank1_mb_err_insr : 1; /* [3] */
        u32 bank2_sb_err_insr : 1; /* [4] */
        u32 bank2_mb_err_insr : 1; /* [5] */
        u32 bank3_sb_err_insr : 1; /* [6] */
        u32 bank3_mb_err_insr : 1; /* [7] */
        u32 rsv_9 : 24;            /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_ecc_insr_u;

/* Define the union csr_shm_ecc_rst_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ecc_autow : 1; /* [0] */
        u32 rsv_10 : 31;   /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_ecc_rst_u;

/* Define the union csr_shm_pw_mode_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ram_ret1n : 1; /* [0] */
        u32 rsv_11 : 31;   /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_pw_mode_u;

/* Define the union csr_shm_tmod_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sp_ram_tmod : 7; /* [6:0] */
        u32 rsv_12 : 25;     /* [31:7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_tmod_u;

/* Define the union csr_shm_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_slv_busy : 1;    /* [0] */
        u32 axi_wburst_mode : 2; /* [2:1] */
        u32 axi_rburst_mode : 2; /* [4:3] */
        u32 rsv_13 : 27;         /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_status_u;

/* Define the union csr_shm_init_chk_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 data_chk_err : 1;    /* [0] */
        u32 addr_chk_err : 1;    /* [1] */
        u32 rsv_14 : 1;          /* [2] */
        u32 init_saddr_over : 1; /* [3] */
        u32 init_len_over : 1;   /* [4] */
        u32 rsv_15 : 27;         /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_err_u;

/* Define the union csr_shm_init_chk_err_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_err_addr : 22; /* [21:0] */
        u32 rsv_16 : 10;            /* [31:22] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_err_addr_u;

/* Define the union csr_shm_init_chk_err_ldata_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_err_ldata : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_err_ldata_u;

/* Define the union csr_shm_init_chk_err_hdata_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 init_chk_err_hdata : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_init_chk_err_hdata_u;

/* Define the union csr_shm_serr_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 single_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_serr_cnt_u;

/* Define the union csr_shm_merr_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 multi_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_merr_cnt_u;

/* Define the union csr_shm_serr_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 serr_addr : 22;    /* [21:0] */
        u32 serr_addr_vld : 1; /* [22] */
        u32 rsv_17 : 9;        /* [31:23] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_serr_addr_u;

/* Define the union csr_shm_merr_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 merr_addr : 22;    /* [21:0] */
        u32 merr_addr_vld : 1; /* [22] */
        u32 rsv_18 : 9;        /* [31:23] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_shm_merr_addr_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_shm_init_chk_mode_u shm_init_chk_mode;           /* 0 */
    volatile csr_shm_init_chk_start_u shm_init_chk_start;         /* 4 */
    volatile csr_shm_init_chk_stat_u shm_init_chk_stat;           /* 8 */
    volatile csr_shm_int_stat_u shm_int_stat;                     /* 20 */
    volatile csr_shm_int_en_u shm_int_en;                         /* 30 */
    volatile csr_shm_int_set_u shm_int_set;                       /* 34 */
    volatile csr_shm_raw_stat_u shm_raw_stat;                     /* 38 */
    volatile csr_shm_init_chk_saddr_u shm_init_chk_saddr;         /* A0 */
    volatile csr_shm_init_chk_len_u shm_init_chk_len;             /* A4 */
    volatile csr_shm_init_chk_ldata_u shm_init_chk_ldata;         /* A8 */
    volatile csr_shm_init_chk_hdata_u shm_init_chk_hdata;         /* AC */
    volatile csr_shm_ecc_bypass_u shm_ecc_bypass;                 /* B0 */
    volatile csr_shm_ecc_insr_u shm_ecc_insr;                     /* B4 */
    volatile csr_shm_ecc_rst_u shm_ecc_rst;                       /* B8 */
    volatile csr_shm_pw_mode_u shm_pw_mode;                       /* BC */
    volatile csr_shm_tmod_u shm_tmod;                             /* C0 */
    volatile csr_shm_status_u shm_status;                         /* C4 */
    volatile csr_shm_init_chk_err_u shm_init_chk_err;             /* C8 */
    volatile csr_shm_init_chk_err_addr_u shm_init_chk_err_addr;   /* CC */
    volatile csr_shm_init_chk_err_ldata_u shm_init_chk_err_ldata; /* D0 */
    volatile csr_shm_init_chk_err_hdata_u shm_init_chk_err_hdata; /* D4 */
    volatile csr_shm_serr_cnt_u shm_serr_cnt;                     /* D8 */
    volatile csr_shm_merr_cnt_u shm_merr_cnt;                     /* DC */
    volatile csr_shm_serr_addr_u shm_serr_addr;                   /* F0 */
    volatile csr_shm_merr_addr_u shm_merr_addr;                   /* F4 */
} S_shm_csr_REGS_TYPE;

/* Declare the struct pointor of the module shm_csr */
extern volatile S_shm_csr_REGS_TYPE *gopshm_csrAllReg;

/* Declare the functions that set the member value */
int iSetSHM_INIT_CHK_MODE_init_chk_mode(unsigned int uinit_chk_mode);
int iSetSHM_INIT_CHK_START_init_chk_start(unsigned int uinit_chk_start);
int iSetSHM_INIT_CHK_STAT_init_chk_done(unsigned int uinit_chk_done);
int iSetSHM_INT_STAT_sbit_err_int_stat(unsigned int usbit_err_int_stat);
int iSetSHM_INT_STAT_mbit_err_int_stat(unsigned int umbit_err_int_stat);
int iSetSHM_INT_STAT_addr_out_int_stat(unsigned int uaddr_out_int_stat);
int iSetSHM_INT_STAT_eco_rsv0_int_stat(unsigned int ueco_rsv0_int_stat);
int iSetSHM_INT_STAT_eco_rsv1_int_stat(unsigned int ueco_rsv1_int_stat);
int iSetSHM_INT_EN_sbit_err_int_en(unsigned int usbit_err_int_en);
int iSetSHM_INT_EN_mbit_err_int_en(unsigned int umbit_err_int_en);
int iSetSHM_INT_EN_addr_out_int_en(unsigned int uaddr_out_int_en);
int iSetSHM_INT_EN_eco_rsv0_int_en(unsigned int ueco_rsv0_int_en);
int iSetSHM_INT_EN_eco_rsv1_int_en(unsigned int ueco_rsv1_int_en);
int iSetSHM_INT_SET_sbit_err_int_set(unsigned int usbit_err_int_set);
int iSetSHM_INT_SET_mbit_err_int_set(unsigned int umbit_err_int_set);
int iSetSHM_INT_SET_addr_out_int_set(unsigned int uaddr_out_int_set);
int iSetSHM_INT_SET_eco_rsv0_int_set(unsigned int ueco_rsv0_int_set);
int iSetSHM_INT_SET_eco_rsv1_int_set(unsigned int ueco_rsv1_int_set);
int iSetSHM_RAW_STAT_sbit_err_raw_stat(unsigned int usbit_err_raw_stat);
int iSetSHM_RAW_STAT_mbit_err_raw_stat(unsigned int umbit_err_raw_stat);
int iSetSHM_RAW_STAT_addr_out_raw_stat(unsigned int uaddr_out_raw_stat);
int iSetSHM_RAW_STAT_eco_rsv0_raw_stat(unsigned int ueco_rsv0_raw_stat);
int iSetSHM_RAW_STAT_eco_rsv1_raw_stat(unsigned int ueco_rsv1_raw_stat);
int iSetSHM_INIT_CHK_SADDR_init_chk_start_addr(unsigned int uinit_chk_start_addr);
int iSetSHM_INIT_CHK_LEN_init_chk_len(unsigned int uinit_chk_len);
int iSetSHM_INIT_CHK_LDATA_init_chk_low_data(unsigned int uinit_chk_low_data);
int iSetSHM_INIT_CHK_HDATA_init_chk_high_data(unsigned int uinit_chk_high_data);
int iSetSHM_ECC_BYPASS_ecc_bypass(unsigned int uecc_bypass);
int iSetSHM_ECC_INSR_bank0_sb_err_insr(unsigned int ubank0_sb_err_insr);
int iSetSHM_ECC_INSR_bank0_mb_err_insr(unsigned int ubank0_mb_err_insr);
int iSetSHM_ECC_INSR_bank1_sb_err_insr(unsigned int ubank1_sb_err_insr);
int iSetSHM_ECC_INSR_bank1_mb_err_insr(unsigned int ubank1_mb_err_insr);
int iSetSHM_ECC_INSR_bank2_sb_err_insr(unsigned int ubank2_sb_err_insr);
int iSetSHM_ECC_INSR_bank2_mb_err_insr(unsigned int ubank2_mb_err_insr);
int iSetSHM_ECC_INSR_bank3_sb_err_insr(unsigned int ubank3_sb_err_insr);
int iSetSHM_ECC_INSR_bank3_mb_err_insr(unsigned int ubank3_mb_err_insr);
int iSetSHM_ECC_RST_ecc_autow(unsigned int uecc_autow);
int iSetSHM_PW_MODE_ram_ret1n(unsigned int uram_ret1n);
int iSetSHM_TMOD_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetSHM_STATUS_axi_slv_busy(unsigned int uaxi_slv_busy);
int iSetSHM_STATUS_axi_wburst_mode(unsigned int uaxi_wburst_mode);
int iSetSHM_STATUS_axi_rburst_mode(unsigned int uaxi_rburst_mode);
int iSetSHM_INIT_CHK_ERR_data_chk_err(unsigned int udata_chk_err);
int iSetSHM_INIT_CHK_ERR_addr_chk_err(unsigned int uaddr_chk_err);
int iSetSHM_INIT_CHK_ERR_init_saddr_over(unsigned int uinit_saddr_over);
int iSetSHM_INIT_CHK_ERR_init_len_over(unsigned int uinit_len_over);
int iSetSHM_INIT_CHK_ERR_ADDR_init_chk_err_addr(unsigned int uinit_chk_err_addr);
int iSetSHM_INIT_CHK_ERR_LDATA_init_chk_err_ldata(unsigned int uinit_chk_err_ldata);
int iSetSHM_INIT_CHK_ERR_HDATA_init_chk_err_hdata(unsigned int uinit_chk_err_hdata);
int iSetSHM_SERR_CNT_single_err_cnt(unsigned int usingle_err_cnt);
int iSetSHM_MERR_CNT_multi_err_cnt(unsigned int umulti_err_cnt);
int iSetSHM_SERR_ADDR_serr_addr(unsigned int userr_addr);
int iSetSHM_SERR_ADDR_serr_addr_vld(unsigned int userr_addr_vld);
int iSetSHM_MERR_ADDR_merr_addr(unsigned int umerr_addr);
int iSetSHM_MERR_ADDR_merr_addr_vld(unsigned int umerr_addr_vld);

/* Define the union csr_eco_rsvd_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 eco_rsvd : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_eco_rsvd_u;

/* Define the union csr_pie_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bd_oq2up_cvg_raw_status : 1;   /* [0] */
        u32 sgl_cvg_raw_status : 1;        /* [1] */
        u32 rsv_0 : 4;                     /* [5:2] */
        u32 bm_fifo_ful_raw_status : 1;    /* [6] */
        u32 oq_eccm_raw_status : 1;        /* [7] */
        u32 oq_eccs_raw_status : 1;        /* [8] */
        u32 tx_parity_raw_status : 1;      /* [9] */
        u32 rx_parity_raw_status : 1;      /* [10] */
        u32 bd_oq2ipsu_ful_raw_status : 1; /* [11] */
        u32 bd_oq2ncsi_ful_raw_status : 1; /* [12] */
        u32 bd_oq2up_ful_raw_status : 1;   /* [13] */
        u32 tx_ucerr_raw_status : 1;       /* [14] */
        u32 rx_ucerr_raw_status : 1;       /* [15] */
        u32 rsv_1 : 16;                    /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pie_int_raw_status_u;

/* Define the union csr_pie_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bd_oq2up_cvg_en : 1;   /* [0] */
        u32 sgl_cvg_en : 1;        /* [1] */
        u32 rsv_2 : 4;             /* [5:2] */
        u32 bm_fifo_ful_en : 1;    /* [6] */
        u32 oq_eccm_en : 1;        /* [7] */
        u32 oq_eccs_en : 1;        /* [8] */
        u32 tx_parity_en : 1;      /* [9] */
        u32 rx_parity_en : 1;      /* [10] */
        u32 bd_oq2ipsu_ful_en : 1; /* [11] */
        u32 bd_oq2ncsi_ful_en : 1; /* [12] */
        u32 bd_oq2up_ful_en : 1;   /* [13] */
        u32 tx_ucerr_en : 1;       /* [14] */
        u32 rx_ucerr_en : 1;       /* [15] */
        u32 rsv_3 : 16;            /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pie_int_en_u;

/* Define the union csr_pie_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bd_oq2up_cvg_set : 1;   /* [0] */
        u32 sgl_cvg_set : 1;        /* [1] */
        u32 rsv_4 : 4;              /* [5:2] */
        u32 bm_fifo_ful_set : 1;    /* [6] */
        u32 oq_eccm_set : 1;        /* [7] */
        u32 oq_eccs_set : 1;        /* [8] */
        u32 tx_parity_set : 1;      /* [9] */
        u32 rx_parity_set : 1;      /* [10] */
        u32 bd_oq2ipsu_ful_set : 1; /* [11] */
        u32 bd_oq2ncsi_ful_set : 1; /* [12] */
        u32 bd_oq2up_ful_set : 1;   /* [13] */
        u32 tx_ucerr_set : 1;       /* [14] */
        u32 rx_ucerr_set : 1;       /* [15] */
        u32 rsv_5 : 16;             /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pie_int_set_u;

/* Define the union csr_pie_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bd_oq2up_cvg_int_status : 1;   /* [0] */
        u32 sgl_cvg_int_status : 1;        /* [1] */
        u32 rsv_6 : 4;                     /* [5:2] */
        u32 bm_fifo_ful_int_status : 1;    /* [6] */
        u32 oq_eccm_int_status : 1;        /* [7] */
        u32 oq_eccs_int_status : 1;        /* [8] */
        u32 tx_parity_int_status : 1;      /* [9] */
        u32 rx_parity_int_status : 1;      /* [10] */
        u32 bd_oq2ipsu_ful_int_status : 1; /* [11] */
        u32 bd_oq2ncsi_ful_int_status : 1; /* [12] */
        u32 bd_oq2up_ful_int_status : 1;   /* [13] */
        u32 tx_ucerr_int_status : 1;       /* [14] */
        u32 rx_ucerr_int_status : 1;       /* [15] */
        u32 rsv_7 : 16;                    /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pie_int_status_u;

/* Define the union csr_csr_pool_fun_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fifo0_fun : 3; /* [2:0] */
        u32 rsv_8 : 1;     /* [3] */
        u32 fifo1_fun : 3; /* [6:4] */
        u32 rsv_9 : 1;     /* [7] */
        u32 fifo2_fun : 3; /* [10:8] */
        u32 rsv_10 : 1;    /* [11] */
        u32 fifo3_fun : 3; /* [14:12] */
        u32 rsv_11 : 1;    /* [15] */
        u32 fifo4_fun : 3; /* [18:16] */
        u32 rsv_12 : 1;    /* [19] */
        u32 fifo5_fun : 3; /* [22:20] */
        u32 rsv_13 : 1;    /* [23] */
        u32 fifo6_fun : 3; /* [26:24] */
        u32 rsv_14 : 1;    /* [27] */
        u32 fifo7_fun : 3; /* [30:28] */
        u32 rsv_15 : 1;    /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_pool_fun_u;

/* Define the union csr_csr_pool_depth0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fifo4_depth : 7; /* [6:0] */
        u32 rsv_16 : 1;      /* [7] */
        u32 fifo5_depth : 7; /* [14:8] */
        u32 rsv_17 : 1;      /* [15] */
        u32 fifo6_depth : 7; /* [22:16] */
        u32 rsv_18 : 1;      /* [23] */
        u32 fifo7_depth : 7; /* [30:24] */
        u32 rsv_19 : 1;      /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_pool_depth0_u;

/* Define the union csr_csr_pool_depth1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fifo0_depth : 7; /* [6:0] */
        u32 rsv_20 : 1;      /* [7] */
        u32 fifo1_depth : 7; /* [14:8] */
        u32 rsv_21 : 1;      /* [15] */
        u32 fifo2_depth : 7; /* [22:16] */
        u32 rsv_22 : 1;      /* [23] */
        u32 fifo3_depth : 7; /* [30:24] */
        u32 rsv_23 : 1;      /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_pool_depth1_u;

/* Define the union csr_csr_pt_pkt_type_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cfg_pt_pkt_type : 5; /* [4:0] */
        u32 rsv_24 : 27;         /* [31:5] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_pt_pkt_type_u;

/* Define the union csr_max_frame_len_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 max_frame_len : 16; /* [15:0] */
        u32 rsv_25 : 16;        /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_max_frame_len_u;

/* Define the union csr_min_frame_len_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 min_frame_len : 16; /* [15:0] */
        u32 rsv_26 : 16;        /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_min_frame_len_u;

/* Define the union csr_csr_peif_fun_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rsv_27 : 4;             /* [3:0] */
        u32 peif_rbd_delay : 6;     /* [9:4] */
        u32 rsv_28 : 3;             /* [12:10] */
        u32 csr_peif_unsop_err : 1; /* [13] */
        u32 csr_peif_uneop_err : 1; /* [14] */
        u32 peif_fifo_gap : 5;      /* [19:15] */
        u32 rsv_29 : 12;            /* [31:20] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_peif_fun_u;

/* Define the union csr_csr_qm_fun_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 iq_fifo_gap : 3; /* [2:0] */
        u32 rsv_30 : 29;     /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_qm_fun_u;

/* Define the union csr_dma_otd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dma_otd_cnt : 2; /* [1:0] */
        u32 rsv_31 : 30;     /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_dma_otd_cnt_u;

/* Define the union csr_csr_txbd_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cfg_txbd_addr : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_txbd_addr_u;

/* Define the union csr_csr_bd2up_time_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bd_int_th : 3;      /* [2:0] */
        u32 rsv_32 : 13;        /* [15:3] */
        u32 bd_int_timeout : 8; /* [23:16] */
        u32 rsv_33 : 8;         /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd2up_time_u;

/* Define the union csr_csr_sgl_time_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sgl_int_th : 3;      /* [2:0] */
        u32 rsv_34 : 13;         /* [15:3] */
        u32 sgl_int_timeout : 8; /* [23:16] */
        u32 rsv_35 : 8;          /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_sgl_time_u;

/* Define the union csr_csr_mem_tmod_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sp_ram_tmod : 7; /* [6:0] */
        u32 rsv_36 : 1;      /* [7] */
        u32 tp_ram_tmod : 8; /* [15:8] */
        u32 rsv_37 : 16;     /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_mem_tmod_u;

/* Define the union csr_csr_mem_dft_power_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mem_power_mode : 6; /* [5:0] */
        u32 rsv_38 : 2;         /* [7:6] */
        u32 ret1n : 1;          /* [8] */
        u32 rsv_39 : 23;        /* [31:9] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_mem_dft_power_u;

/* Define the union csr_csr_bd_if0_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if0_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if0_wrd0_u;

/* Define the union csr_csr_bd_if0_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if0_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if0_wrd1_u;

/* Define the union csr_csr_bd_if0_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if0_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if0_wrd2_u;

/* Define the union csr_csr_bd_if0_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if0_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if0_wrd3_u;

/* Define the union csr_csr_bd_if1_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if1_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if1_wrd0_u;

/* Define the union csr_csr_bd_if1_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if1_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if1_wrd1_u;

/* Define the union csr_csr_bd_if1_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if1_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if1_wrd2_u;

/* Define the union csr_csr_bd_if1_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if1_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if1_wrd3_u;

/* Define the union csr_csr_bd_if2_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if2_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if2_wrd0_u;

/* Define the union csr_csr_bd_if2_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if2_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if2_wrd1_u;

/* Define the union csr_csr_bd_if2_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if2_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if2_wrd2_u;

/* Define the union csr_csr_bd_if2_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if2_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if2_wrd3_u;

/* Define the union csr_csr_bd_if3_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if3_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if3_wrd0_u;

/* Define the union csr_csr_bd_if3_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if3_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if3_wrd1_u;

/* Define the union csr_csr_bd_if3_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if3_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if3_wrd2_u;

/* Define the union csr_csr_bd_if3_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if3_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if3_wrd3_u;

/* Define the union csr_csr_bd_if4_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if4_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if4_wrd0_u;

/* Define the union csr_csr_bd_if4_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if4_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if4_wrd1_u;

/* Define the union csr_csr_bd_if4_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if4_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if4_wrd2_u;

/* Define the union csr_csr_bd_if4_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if4_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if4_wrd3_u;

/* Define the union csr_csr_bd_if5_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if5_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if5_wrd0_u;

/* Define the union csr_csr_bd_if5_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if5_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if5_wrd1_u;

/* Define the union csr_csr_bd_if5_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if5_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if5_wrd2_u;

/* Define the union csr_csr_bd_if5_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if5_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if5_wrd3_u;

/* Define the union csr_csr_bd_if6_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if6_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if6_wrd0_u;

/* Define the union csr_csr_bd_if6_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if6_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if6_wrd1_u;

/* Define the union csr_csr_bd_if6_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if6_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if6_wrd2_u;

/* Define the union csr_csr_bd_if6_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if6_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if6_wrd3_u;

/* Define the union csr_csr_bd_if7_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if7_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if7_wrd0_u;

/* Define the union csr_csr_bd_if7_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if7_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if7_wrd1_u;

/* Define the union csr_csr_bd_if7_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if7_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if7_wrd2_u;

/* Define the union csr_csr_bd_if7_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_bd_if7_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_bd_if7_wrd3_u;

/* Define the union csr_rls_bd_if0_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_bd_if0_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rls_bd_if0_wrd0_u;

/* Define the union csr_rls_bd_if0_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_bd_if0_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rls_bd_if0_wrd1_u;

/* Define the union csr_rls_bd_if0_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_bd_if0_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rls_bd_if0_wrd2_u;

/* Define the union csr_rls_bd_if0_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_bd_if0_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rls_bd_if0_wrd3_u;

/* Define the union csr_rls_bd_if1_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_bd_if1_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rls_bd_if1_wrd0_u;

/* Define the union csr_rls_bd_if1_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_bd_if1_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rls_bd_if1_wrd1_u;

/* Define the union csr_rls_bd_if1_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_bd_if1_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rls_bd_if1_wrd2_u;

/* Define the union csr_rls_bd_if1_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rls_bd_if1_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rls_bd_if1_wrd3_u;

/* Define the union csr_add_bd_if0_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_bd_if0_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_add_bd_if0_wrd0_u;

/* Define the union csr_add_bd_if0_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_bd_if0_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_add_bd_if0_wrd1_u;

/* Define the union csr_add_bd_if0_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_bd_if0_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_add_bd_if0_wrd2_u;

/* Define the union csr_add_bd_if0_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_bd_if0_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_add_bd_if0_wrd3_u;

/* Define the union csr_add_bd_if1_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_bd_if1_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_add_bd_if1_wrd0_u;

/* Define the union csr_add_bd_if1_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_bd_if1_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_add_bd_if1_wrd1_u;

/* Define the union csr_add_bd_if1_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_bd_if1_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_add_bd_if1_wrd2_u;

/* Define the union csr_add_bd_if1_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 add_bd_if1_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_add_bd_if1_wrd3_u;

/* Define the union csr_oq2up_bd_if_wrd0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 oq2up_bd_if_wrd0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_oq2up_bd_if_wrd0_u;

/* Define the union csr_oq2up_bd_if_wrd1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 oq2up_bd_if_wrd1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_oq2up_bd_if_wrd1_u;

/* Define the union csr_oq2up_bd_if_wrd2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 oq2up_bd_if_wrd2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_oq2up_bd_if_wrd2_u;

/* Define the union csr_oq2up_bd_if_wrd3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 oq2up_bd_if_wrd3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_oq2up_bd_if_wrd3_u;

/* Define the union csr_csr_axi_msr_inf_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_cnt_wr_acc_clr : 1;     /* [0] */
        u32 axi_cnt_rd_acc_clr : 1;     /* [1] */
        u32 axi_cnt_wr_latency_clr : 1; /* [2] */
        u32 axi_cnt_rd_latency_clr : 1; /* [3] */
        u32 rsv_40 : 28;                /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_csr_axi_msr_inf_u;

/* Define the union csr_bd_err_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 csr_reg_err : 1;   /* [0] */
        u32 csr_2pe_err : 1;   /* [1] */
        u32 csr_npe_err : 1;   /* [2] */
        u32 csr_ovflw_err : 1; /* [3] */
        u32 rsv_41 : 28;       /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bd_err_status_u;

/* Define the union csr_bm_read0_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read0_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read0_cnt_u;

/* Define the union csr_bm_read1_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read1_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read1_cnt_u;

/* Define the union csr_bm_read2_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read2_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read2_cnt_u;

/* Define the union csr_bm_read3_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read3_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read3_cnt_u;

/* Define the union csr_bm_read4_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read4_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read4_cnt_u;

/* Define the union csr_bm_read5_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read5_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read5_cnt_u;

/* Define the union csr_bm_read6_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read6_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read6_cnt_u;

/* Define the union csr_bm_read7_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read7_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read7_cnt_u;

/* Define the union csr_bm_write0_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_write0_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_write0_cnt_u;

/* Define the union csr_bm_write1_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_write1_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_write1_cnt_u;

/* Define the union csr_bm_write2_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_write2_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_write2_cnt_u;

/* Define the union csr_bm_write3_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_write3_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_write3_cnt_u;

/* Define the union csr_bm_write4_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_write4_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_write4_cnt_u;

/* Define the union csr_bm_write5_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_write5_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_write5_cnt_u;

/* Define the union csr_bm_write6_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_write6_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_write6_cnt_u;

/* Define the union csr_bm_write7_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_write7_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_write7_cnt_u;

/* Define the union csr_bm_fifo0x1_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_fifo0_cnt : 8; /* [7:0] */
        u32 bm_fifo0_ful : 1; /* [8] */
        u32 bm_fifo0_ept : 1; /* [9] */
        u32 rsv_42 : 6;       /* [15:10] */
        u32 bm_fifo1_cnt : 8; /* [23:16] */
        u32 bm_fifo1_ful : 1; /* [24] */
        u32 bm_fifo1_ept : 1; /* [25] */
        u32 rsv_43 : 6;       /* [31:26] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_fifo0x1_status_u;

/* Define the union csr_bm_fifo2x3_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_fifo2_cnt : 8; /* [7:0] */
        u32 bm_fifo2_ful : 1; /* [8] */
        u32 bm_fifo2_ept : 1; /* [9] */
        u32 rsv_44 : 6;       /* [15:10] */
        u32 bm_fifo3_cnt : 8; /* [23:16] */
        u32 bm_fifo3_ful : 1; /* [24] */
        u32 bm_fifo3_ept : 1; /* [25] */
        u32 rsv_45 : 6;       /* [31:26] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_fifo2x3_status_u;

/* Define the union csr_bm_fifo4x5_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_fifo4_cnt : 8; /* [7:0] */
        u32 bm_fifo4_ful : 1; /* [8] */
        u32 bm_fifo4_ept : 1; /* [9] */
        u32 rsv_46 : 6;       /* [15:10] */
        u32 bm_fifo5_cnt : 8; /* [23:16] */
        u32 bm_fifo5_ful : 1; /* [24] */
        u32 bm_fifo5_ept : 1; /* [25] */
        u32 rsv_47 : 6;       /* [31:26] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_fifo4x5_status_u;

/* Define the union csr_bm_fifo6x7_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_fifo6_cnt : 8; /* [7:0] */
        u32 bm_fifo6_ful : 1; /* [8] */
        u32 bm_fifo6_ept : 1; /* [9] */
        u32 rsv_48 : 6;       /* [15:10] */
        u32 bm_fifo7_cnt : 8; /* [23:16] */
        u32 bm_fifo7_ful : 1; /* [24] */
        u32 bm_fifo7_ept : 1; /* [25] */
        u32 rsv_49 : 6;       /* [31:26] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_fifo6x7_status_u;

/* Define the union csr_bm_read0_emp_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read0_emp_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read0_emp_cnt_u;

/* Define the union csr_bm_read1_emp_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read1_emp_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read1_emp_cnt_u;

/* Define the union csr_bm_read2_emp_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read2_emp_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read2_emp_cnt_u;

/* Define the union csr_bm_read3_emp_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read3_emp_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read3_emp_cnt_u;

/* Define the union csr_bm_read4_emp_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read4_emp_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read4_emp_cnt_u;

/* Define the union csr_bm_read5_emp_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read5_emp_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read5_emp_cnt_u;

/* Define the union csr_bm_read6_emp_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read6_emp_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read6_emp_cnt_u;

/* Define the union csr_bm_read7_emp_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read7_emp_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read7_emp_cnt_u;

/* Define the union csr_rx_pkt_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_size_up_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_pkt_status_u;

/* Define the union csr_ncsi_bpr_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ncsi_bpr_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ncsi_bpr_cnt_u;

/* Define the union csr_iq_bd_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 iq_bd_cnt : 4; /* [3:0] */
        u32 iq_bd_ful : 1; /* [4] */
        u32 iq_bd_ept : 1; /* [5] */
        u32 rsv_50 : 26;   /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_iq_bd_status_u;

/* Define the union csr_oq_bd2up_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 oq_bd2up_cnt : 4; /* [3:0] */
        u32 oq_bd2up_ful : 1; /* [4] */
        u32 oq_bd2up_ept : 1; /* [5] */
        u32 rsv_51 : 26;      /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_oq_bd2up_status_u;

/* Define the union csr_oq_bd2ncsi_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 oq_bd2ncsi_cnt : 4; /* [3:0] */
        u32 oq_bd2ncsi_ful : 1; /* [4] */
        u32 oq_bd2ncsi_ept : 1; /* [5] */
        u32 rsv_52 : 26;        /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_oq_bd2ncsi_status_u;

/* Define the union csr_oq_bd2ipsu_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 oq_bd2ipsu_cnt : 4; /* [3:0] */
        u32 oq_bd2ipsu_ful : 1; /* [4] */
        u32 oq_bd2ipsu_ept : 1; /* [5] */
        u32 rsv_53 : 26;        /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_oq_bd2ipsu_status_u;

/* Define the union csr_out2up_bd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 out2up_bd_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_out2up_bd_cnt_u;

/* Define the union csr_out2ipsu_bd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 out2ipsu_bd_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_out2ipsu_bd_cnt_u;

/* Define the union csr_out2ncsi_bd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 out2ncsi_bd_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_out2ncsi_bd_cnt_u;

/* Define the union csr_oq_eccs_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 oq_eccs_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_oq_eccs_cnt_u;

/* Define the union csr_oq_eccm_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 oq_eccm_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_oq_eccm_cnt_u;

/* Define the union csr_axi_rd_latency_avg_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_latency_avg_cnt : 16; /* [15:0] */
        u32 rsv_54 : 16;                 /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rd_latency_avg_cnt_u;

/* Define the union csr_axi_wr_latency_avg_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_latency_avg_cnt : 16; /* [15:0] */
        u32 rsv_55 : 16;                 /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_wr_latency_avg_cnt_u;

/* Define the union csr_axi_rd_latency_max_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_latency_max_cnt : 16; /* [15:0] */
        u32 rsv_56 : 16;                 /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rd_latency_max_cnt_u;

/* Define the union csr_axi_wr_latency_max_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_latency_max_cnt : 16; /* [15:0] */
        u32 rsv_57 : 16;                 /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_wr_latency_max_cnt_u;

/* Define the union csr_axi_rd_acc_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_rd_acc_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rd_acc_cnt_u;

/* Define the union csr_axi_wr_acc_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_acc_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_wr_acc_cnt_u;

/* Define the union csr_axi_rd_otd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axiwr_bresp_err : 1; /* [0] */
        u32 axird_bresp_err : 1; /* [1] */
        u32 rsv_58 : 2;          /* [3:2] */
        u32 axi_rd_otd_cnt : 24; /* [27:4] */
        u32 rsv_59 : 4;          /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_rd_otd_cnt_u;

/* Define the union csr_axi_wr_otd_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 axi_wr_otd_cnt : 24; /* [23:0] */
        u32 rsv_60 : 8;          /* [31:24] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_axi_wr_otd_cnt_u;

/* Define the union csr_txdma_dat_ff_th_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dat_fifo_alempt_gap : 6; /* [5:0] */
        u32 rsv_61 : 2;              /* [7:6] */
        u32 dat_fifo_aful_gap : 6;   /* [13:8] */
        u32 rsv_62 : 18;             /* [31:14] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_txdma_dat_ff_th_u;

/* Define the union csr_txdma_dat_ff_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 dat_fifo_alempt_ff : 1;    /* [0] */
        u32 dat_fifo_empt_ff : 1;      /* [1] */
        u32 dat_fifo_aful_ff : 1;      /* [2] */
        u32 dat_fifo_ful_ff : 1;       /* [3] */
        u32 dat_fifo_underflow_ff : 1; /* [4] */
        u32 dat_fifo_overflow_ff : 1;  /* [5] */
        u32 rsv_63 : 2;                /* [7:6] */
        u32 dat_fifo_cnt_ff : 7;       /* [14:8] */
        u32 rsv_64 : 17;               /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_txdma_dat_ff_sta_u;

/* Define the union csr_txdma_inf_ff_th_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 inf_fifo_alempt_gap : 6; /* [5:0] */
        u32 rsv_65 : 2;              /* [7:6] */
        u32 inf_fifo_aful_gap : 6;   /* [13:8] */
        u32 rsv_66 : 18;             /* [31:14] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_txdma_inf_ff_th_u;

/* Define the union csr_txdma_inf_ff_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 inf_fifo_alempt_ff : 1;    /* [0] */
        u32 inf_fifo_empt_ff : 1;      /* [1] */
        u32 inf_fifo_aful_ff : 1;      /* [2] */
        u32 inf_fifo_ful_ff : 1;       /* [3] */
        u32 inf_fifo_underflow_ff : 1; /* [4] */
        u32 inf_fifo_overflow_ff : 1;  /* [5] */
        u32 rsv_67 : 2;                /* [7:6] */
        u32 inf_fifo_cnt_ff : 7;       /* [14:8] */
        u32 rsv_68 : 17;               /* [31:15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_txdma_inf_ff_sta_u;

/* Define the union csr_ipsuif_ff_th_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ipsuif_fifo_alempt_th : 4; /* [3:0] */
        u32 ipsuif_fifo_afull_th : 4;  /* [7:4] */
        u32 rsv_69 : 24;               /* [31:8] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ipsuif_ff_th_u;

/* Define the union csr_ipsuif_ff_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ipsuif_fifo_alempt : 1;    /* [0] */
        u32 ipsuif_fifo_empt : 1;      /* [1] */
        u32 ipsuif_fifo_aful : 1;      /* [2] */
        u32 ipsuif_fifo_full : 1;      /* [3] */
        u32 ipsuif_fifo_overflow : 1;  /* [4] */
        u32 rsv_70 : 3;                /* [7:5] */
        u32 ipsuif_fifo_wfifo_cnt : 5; /* [12:8] */
        u32 rsv_71 : 19;               /* [31:13] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_ipsuif_ff_sta_u;

/* Define the union csr_bm_read0_ful_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read0_ful_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read0_ful_cnt_u;

/* Define the union csr_bm_read1_ful_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read1_ful_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read1_ful_cnt_u;

/* Define the union csr_bm_read2_ful_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read2_ful_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read2_ful_cnt_u;

/* Define the union csr_bm_read3_ful_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read3_ful_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read3_ful_cnt_u;

/* Define the union csr_bm_read4_ful_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read4_ful_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read4_ful_cnt_u;

/* Define the union csr_bm_read5_ful_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read5_ful_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read5_ful_cnt_u;

/* Define the union csr_bm_read6_ful_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read6_ful_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read6_ful_cnt_u;

/* Define the union csr_bm_read7_ful_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 bm_read7_ful_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_bm_read7_ful_cnt_u;

/* Define the union csr_rx_parity_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rxdma_parity_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_parity_err_cnt_u;

/* Define the union csr_tx_parity_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txdma_parity_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_parity_err_cnt_u;

/* Define the union csr_tx_minlen_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txdma_minlen_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_minlen_err_cnt_u;

/* Define the union csr_tx_bdsize_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txdma_bdsize_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_bdsize_err_cnt_u;

/* Define the union csr_tx_bdcode_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txdma_bdcode_err_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_bdcode_err_cnt_u;

/* Define the union csr_tx_sgl_ci_th_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_sgl_ci_th : 6; /* [5:0] */
        u32 rsv_72 : 26;      /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_sgl_ci_th_u;

/* Define the union csr_tx_sgl_ci_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_sgl_ci_cnt : 6; /* [5:0] */
        u32 rsv_73 : 26;       /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_sgl_ci_cnt_u;

/* Define the union csr_qm_ecc_err_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 qm_ecc_err_addr : 6; /* [5:0] */
        u32 rsv_74 : 26;         /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_qm_ecc_err_addr_u;

/* Define the union csr_pie_ecc_bypass_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 qm_ecc_bypass : 1; /* [0] */
        u32 rsv_75 : 31;       /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pie_ecc_bypass_u;

/* Define the union csr_peif_fifo_sta_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 peif_fifo_aful : 1;  /* [0] */
        u32 peif_fifo_full : 1;  /* [1] */
        u32 peif_fifo_oflow : 1; /* [2] */
        u32 rsv_76 : 29;         /* [31:3] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_peif_fifo_sta_u;

/* Define the union csr_qm_ram_ecc_insr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 qm_ram_cerr_insr : 1;  /* [0] */
        u32 qm_ram_ucerr_insr : 1; /* [1] */
        u32 rsv_77 : 30;           /* [31:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_qm_ram_ecc_insr_u;

/* Define the union csr_pie_initial_end_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 peif_prefetch_start : 1; /* [0] */
        u32 rsv_78 : 31;             /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_pie_initial_end_u;

/* Define the union csr_tx_rx_ram_ecc_insr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_ram_cerr_insr : 1;  /* [0] */
        u32 tx_ram_ucerr_insr : 1; /* [1] */
        u32 rx_ram_cerr_insr : 1;  /* [2] */
        u32 rx_ram_ucerr_insr : 1; /* [3] */
        u32 rsv_79 : 28;           /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_rx_ram_ecc_insr_u;

/* Define the union csr_rx_cerr_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_cerr_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_cerr_cnt_u;

/* Define the union csr_rx_ucerr_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rx_ucerr_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_ucerr_cnt_u;

/* Define the union csr_tx_cerr_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_cerr_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_cerr_cnt_u;

/* Define the union csr_tx_ucerr_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 tx_ucerr_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_ucerr_cnt_u;

/* Define the union csr_rx_ecc_err_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rxdma_ecc_err_addr : 6; /* [5:0] */
        u32 rsv_80 : 26;            /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_rx_ecc_err_addr_u;

/* Define the union csr_tx_ecc_err_addr_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 txdma_ecc_err_addr : 6; /* [5:0] */
        u32 rsv_81 : 26;            /* [31:6] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_tx_ecc_err_addr_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_eco_rsvd_u eco_rsvd;                             /* 0 */
    volatile csr_pie_int_raw_status_u pie_int_raw_status;         /* 10 */
    volatile csr_pie_int_en_u pie_int_en;                         /* 20 */
    volatile csr_pie_int_set_u pie_int_set;                       /* 30 */
    volatile csr_pie_int_status_u pie_int_status;                 /* 40 */
    volatile csr_csr_pool_fun_u csr_pool_fun;                     /* A0 */
    volatile csr_csr_pool_depth0_u csr_pool_depth0;               /* A4 */
    volatile csr_csr_pool_depth1_u csr_pool_depth1;               /* A8 */
    volatile csr_csr_pt_pkt_type_u csr_pt_pkt_type;               /* AC */
    volatile csr_max_frame_len_u max_frame_len;                   /* B0 */
    volatile csr_min_frame_len_u min_frame_len;                   /* B4 */
    volatile csr_csr_peif_fun_u csr_peif_fun;                     /* B8 */
    volatile csr_csr_qm_fun_u csr_qm_fun;                         /* BC */
    volatile csr_dma_otd_cnt_u dma_otd_cnt;                       /* C0 */
    volatile csr_csr_txbd_addr_u csr_txbd_addr;                   /* C4 */
    volatile csr_csr_bd2up_time_u csr_bd2up_time;                 /* C8 */
    volatile csr_csr_sgl_time_u csr_sgl_time;                     /* CC */
    volatile csr_csr_mem_tmod_u csr_mem_tmod;                     /* D0 */
    volatile csr_csr_mem_dft_power_u csr_mem_dft_power;           /* D4 */
    volatile csr_csr_bd_if0_wrd0_u csr_bd_if0_wrd0;               /* 100 */
    volatile csr_csr_bd_if0_wrd1_u csr_bd_if0_wrd1;               /* 104 */
    volatile csr_csr_bd_if0_wrd2_u csr_bd_if0_wrd2;               /* 108 */
    volatile csr_csr_bd_if0_wrd3_u csr_bd_if0_wrd3;               /* 10C */
    volatile csr_csr_bd_if1_wrd0_u csr_bd_if1_wrd0;               /* 110 */
    volatile csr_csr_bd_if1_wrd1_u csr_bd_if1_wrd1;               /* 114 */
    volatile csr_csr_bd_if1_wrd2_u csr_bd_if1_wrd2;               /* 118 */
    volatile csr_csr_bd_if1_wrd3_u csr_bd_if1_wrd3;               /* 11C */
    volatile csr_csr_bd_if2_wrd0_u csr_bd_if2_wrd0;               /* 120 */
    volatile csr_csr_bd_if2_wrd1_u csr_bd_if2_wrd1;               /* 124 */
    volatile csr_csr_bd_if2_wrd2_u csr_bd_if2_wrd2;               /* 128 */
    volatile csr_csr_bd_if2_wrd3_u csr_bd_if2_wrd3;               /* 12C */
    volatile csr_csr_bd_if3_wrd0_u csr_bd_if3_wrd0;               /* 130 */
    volatile csr_csr_bd_if3_wrd1_u csr_bd_if3_wrd1;               /* 134 */
    volatile csr_csr_bd_if3_wrd2_u csr_bd_if3_wrd2;               /* 138 */
    volatile csr_csr_bd_if3_wrd3_u csr_bd_if3_wrd3;               /* 13C */
    volatile csr_csr_bd_if4_wrd0_u csr_bd_if4_wrd0;               /* 140 */
    volatile csr_csr_bd_if4_wrd1_u csr_bd_if4_wrd1;               /* 144 */
    volatile csr_csr_bd_if4_wrd2_u csr_bd_if4_wrd2;               /* 148 */
    volatile csr_csr_bd_if4_wrd3_u csr_bd_if4_wrd3;               /* 14C */
    volatile csr_csr_bd_if5_wrd0_u csr_bd_if5_wrd0;               /* 150 */
    volatile csr_csr_bd_if5_wrd1_u csr_bd_if5_wrd1;               /* 154 */
    volatile csr_csr_bd_if5_wrd2_u csr_bd_if5_wrd2;               /* 158 */
    volatile csr_csr_bd_if5_wrd3_u csr_bd_if5_wrd3;               /* 15C */
    volatile csr_csr_bd_if6_wrd0_u csr_bd_if6_wrd0;               /* 160 */
    volatile csr_csr_bd_if6_wrd1_u csr_bd_if6_wrd1;               /* 164 */
    volatile csr_csr_bd_if6_wrd2_u csr_bd_if6_wrd2;               /* 168 */
    volatile csr_csr_bd_if6_wrd3_u csr_bd_if6_wrd3;               /* 16C */
    volatile csr_csr_bd_if7_wrd0_u csr_bd_if7_wrd0;               /* 170 */
    volatile csr_csr_bd_if7_wrd1_u csr_bd_if7_wrd1;               /* 174 */
    volatile csr_csr_bd_if7_wrd2_u csr_bd_if7_wrd2;               /* 178 */
    volatile csr_csr_bd_if7_wrd3_u csr_bd_if7_wrd3;               /* 17C */
    volatile csr_rls_bd_if0_wrd0_u rls_bd_if0_wrd0;               /* 180 */
    volatile csr_rls_bd_if0_wrd1_u rls_bd_if0_wrd1;               /* 184 */
    volatile csr_rls_bd_if0_wrd2_u rls_bd_if0_wrd2;               /* 188 */
    volatile csr_rls_bd_if0_wrd3_u rls_bd_if0_wrd3;               /* 18C */
    volatile csr_rls_bd_if1_wrd0_u rls_bd_if1_wrd0;               /* 190 */
    volatile csr_rls_bd_if1_wrd1_u rls_bd_if1_wrd1;               /* 194 */
    volatile csr_rls_bd_if1_wrd2_u rls_bd_if1_wrd2;               /* 198 */
    volatile csr_rls_bd_if1_wrd3_u rls_bd_if1_wrd3;               /* 19C */
    volatile csr_add_bd_if0_wrd0_u add_bd_if0_wrd0;               /* 200 */
    volatile csr_add_bd_if0_wrd1_u add_bd_if0_wrd1;               /* 204 */
    volatile csr_add_bd_if0_wrd2_u add_bd_if0_wrd2;               /* 208 */
    volatile csr_add_bd_if0_wrd3_u add_bd_if0_wrd3;               /* 20C */
    volatile csr_add_bd_if1_wrd0_u add_bd_if1_wrd0;               /* 210 */
    volatile csr_add_bd_if1_wrd1_u add_bd_if1_wrd1;               /* 214 */
    volatile csr_add_bd_if1_wrd2_u add_bd_if1_wrd2;               /* 218 */
    volatile csr_add_bd_if1_wrd3_u add_bd_if1_wrd3;               /* 21C */
    volatile csr_oq2up_bd_if_wrd0_u oq2up_bd_if_wrd0;             /* 220 */
    volatile csr_oq2up_bd_if_wrd1_u oq2up_bd_if_wrd1;             /* 224 */
    volatile csr_oq2up_bd_if_wrd2_u oq2up_bd_if_wrd2;             /* 228 */
    volatile csr_oq2up_bd_if_wrd3_u oq2up_bd_if_wrd3;             /* 22C */
    volatile csr_csr_axi_msr_inf_u csr_axi_msr_inf;               /* 240 */
    volatile csr_bd_err_status_u bd_err_status;                   /* 300 */
    volatile csr_bm_read0_cnt_u bm_read0_cnt;                     /* 308 */
    volatile csr_bm_read1_cnt_u bm_read1_cnt;                     /* 30C */
    volatile csr_bm_read2_cnt_u bm_read2_cnt;                     /* 310 */
    volatile csr_bm_read3_cnt_u bm_read3_cnt;                     /* 314 */
    volatile csr_bm_read4_cnt_u bm_read4_cnt;                     /* 318 */
    volatile csr_bm_read5_cnt_u bm_read5_cnt;                     /* 31C */
    volatile csr_bm_read6_cnt_u bm_read6_cnt;                     /* 320 */
    volatile csr_bm_read7_cnt_u bm_read7_cnt;                     /* 324 */
    volatile csr_bm_write0_cnt_u bm_write0_cnt;                   /* 328 */
    volatile csr_bm_write1_cnt_u bm_write1_cnt;                   /* 32C */
    volatile csr_bm_write2_cnt_u bm_write2_cnt;                   /* 330 */
    volatile csr_bm_write3_cnt_u bm_write3_cnt;                   /* 334 */
    volatile csr_bm_write4_cnt_u bm_write4_cnt;                   /* 338 */
    volatile csr_bm_write5_cnt_u bm_write5_cnt;                   /* 33C */
    volatile csr_bm_write6_cnt_u bm_write6_cnt;                   /* 340 */
    volatile csr_bm_write7_cnt_u bm_write7_cnt;                   /* 344 */
    volatile csr_bm_fifo0x1_status_u bm_fifo0x1_status;           /* 348 */
    volatile csr_bm_fifo2x3_status_u bm_fifo2x3_status;           /* 34C */
    volatile csr_bm_fifo4x5_status_u bm_fifo4x5_status;           /* 350 */
    volatile csr_bm_fifo6x7_status_u bm_fifo6x7_status;           /* 354 */
    volatile csr_bm_read0_emp_cnt_u bm_read0_emp_cnt;             /* 358 */
    volatile csr_bm_read1_emp_cnt_u bm_read1_emp_cnt;             /* 35C */
    volatile csr_bm_read2_emp_cnt_u bm_read2_emp_cnt;             /* 360 */
    volatile csr_bm_read3_emp_cnt_u bm_read3_emp_cnt;             /* 364 */
    volatile csr_bm_read4_emp_cnt_u bm_read4_emp_cnt;             /* 368 */
    volatile csr_bm_read5_emp_cnt_u bm_read5_emp_cnt;             /* 36C */
    volatile csr_bm_read6_emp_cnt_u bm_read6_emp_cnt;             /* 370 */
    volatile csr_bm_read7_emp_cnt_u bm_read7_emp_cnt;             /* 374 */
    volatile csr_rx_pkt_status_u rx_pkt_status;                   /* 378 */
    volatile csr_ncsi_bpr_cnt_u ncsi_bpr_cnt;                     /* 37C */
    volatile csr_iq_bd_status_u iq_bd_status;                     /* 380 */
    volatile csr_oq_bd2up_status_u oq_bd2up_status;               /* 384 */
    volatile csr_oq_bd2ncsi_status_u oq_bd2ncsi_status;           /* 388 */
    volatile csr_oq_bd2ipsu_status_u oq_bd2ipsu_status;           /* 38C */
    volatile csr_out2up_bd_cnt_u out2up_bd_cnt;                   /* 390 */
    volatile csr_out2ipsu_bd_cnt_u out2ipsu_bd_cnt;               /* 394 */
    volatile csr_out2ncsi_bd_cnt_u out2ncsi_bd_cnt;               /* 398 */
    volatile csr_oq_eccs_cnt_u oq_eccs_cnt;                       /* 39C */
    volatile csr_oq_eccm_cnt_u oq_eccm_cnt;                       /* 4A0 */
    volatile csr_axi_rd_latency_avg_cnt_u axi_rd_latency_avg_cnt; /* 4A4 */
    volatile csr_axi_wr_latency_avg_cnt_u axi_wr_latency_avg_cnt; /* 4A8 */
    volatile csr_axi_rd_latency_max_cnt_u axi_rd_latency_max_cnt; /* 4AC */
    volatile csr_axi_wr_latency_max_cnt_u axi_wr_latency_max_cnt; /* 4B0 */
    volatile csr_axi_rd_acc_cnt_u axi_rd_acc_cnt;                 /* 4B4 */
    volatile csr_axi_wr_acc_cnt_u axi_wr_acc_cnt;                 /* 4B8 */
    volatile csr_axi_rd_otd_cnt_u axi_rd_otd_cnt;                 /* 4BC */
    volatile csr_axi_wr_otd_cnt_u axi_wr_otd_cnt;                 /* 4C0 */
    volatile csr_txdma_dat_ff_th_u txdma_dat_ff_th;               /* 4D0 */
    volatile csr_txdma_dat_ff_sta_u txdma_dat_ff_sta;             /* 4D4 */
    volatile csr_txdma_inf_ff_th_u txdma_inf_ff_th;               /* 4D8 */
    volatile csr_txdma_inf_ff_sta_u txdma_inf_ff_sta;             /* 4DC */
    volatile csr_ipsuif_ff_th_u ipsuif_ff_th;                     /* 4E0 */
    volatile csr_ipsuif_ff_sta_u ipsuif_ff_sta;                   /* 4E4 */
    volatile csr_bm_read0_ful_cnt_u bm_read0_ful_cnt;             /* 4E8 */
    volatile csr_bm_read1_ful_cnt_u bm_read1_ful_cnt;             /* 4EC */
    volatile csr_bm_read2_ful_cnt_u bm_read2_ful_cnt;             /* 4F0 */
    volatile csr_bm_read3_ful_cnt_u bm_read3_ful_cnt;             /* 4F4 */
    volatile csr_bm_read4_ful_cnt_u bm_read4_ful_cnt;             /* 4F8 */
    volatile csr_bm_read5_ful_cnt_u bm_read5_ful_cnt;             /* 4FC */
    volatile csr_bm_read6_ful_cnt_u bm_read6_ful_cnt;             /* 500 */
    volatile csr_bm_read7_ful_cnt_u bm_read7_ful_cnt;             /* 504 */
    volatile csr_rx_parity_err_cnt_u rx_parity_err_cnt;           /* 508 */
    volatile csr_tx_parity_err_cnt_u tx_parity_err_cnt;           /* 50C */
    volatile csr_tx_minlen_err_cnt_u tx_minlen_err_cnt;           /* 510 */
    volatile csr_tx_bdsize_err_cnt_u tx_bdsize_err_cnt;           /* 514 */
    volatile csr_tx_bdcode_err_cnt_u tx_bdcode_err_cnt;           /* 518 */
    volatile csr_tx_sgl_ci_th_u tx_sgl_ci_th;                     /* 51C */
    volatile csr_tx_sgl_ci_cnt_u tx_sgl_ci_cnt;                   /* 520 */
    volatile csr_qm_ecc_err_addr_u qm_ecc_err_addr;               /* 524 */
    volatile csr_pie_ecc_bypass_u pie_ecc_bypass;                 /* 528 */
    volatile csr_peif_fifo_sta_u peif_fifo_sta;                   /* 52C */
    volatile csr_qm_ram_ecc_insr_u qm_ram_ecc_insr;               /* 530 */
    volatile csr_pie_initial_end_u pie_initial_end;               /* 534 */
    volatile csr_tx_rx_ram_ecc_insr_u tx_rx_ram_ecc_insr;         /* 538 */
    volatile csr_rx_cerr_cnt_u rx_cerr_cnt;                       /* 53C */
    volatile csr_rx_ucerr_cnt_u rx_ucerr_cnt;                     /* 540 */
    volatile csr_tx_cerr_cnt_u tx_cerr_cnt;                       /* 544 */
    volatile csr_tx_ucerr_cnt_u tx_ucerr_cnt;                     /* 548 */
    volatile csr_rx_ecc_err_addr_u rx_ecc_err_addr;               /* 54C */
    volatile csr_tx_ecc_err_addr_u tx_ecc_err_addr;               /* 550 */
} S_pie_REGS_TYPE;

/* Declare the struct pointor of the module pie */
extern volatile S_pie_REGS_TYPE *goppieAllReg;

/* Declare the functions that set the member value */
int iSetECO_RSVD_eco_rsvd(unsigned int ueco_rsvd);
int iSetPIE_INT_RAW_STATUS_bd_oq2up_cvg_raw_status(unsigned int ubd_oq2up_cvg_raw_status);
int iSetPIE_INT_RAW_STATUS_sgl_cvg_raw_status(unsigned int usgl_cvg_raw_status);
int iSetPIE_INT_RAW_STATUS_bm_fifo_ful_raw_status(unsigned int ubm_fifo_ful_raw_status);
int iSetPIE_INT_RAW_STATUS_oq_eccm_raw_status(unsigned int uoq_eccm_raw_status);
int iSetPIE_INT_RAW_STATUS_oq_eccs_raw_status(unsigned int uoq_eccs_raw_status);
int iSetPIE_INT_RAW_STATUS_tx_parity_raw_status(unsigned int utx_parity_raw_status);
int iSetPIE_INT_RAW_STATUS_rx_parity_raw_status(unsigned int urx_parity_raw_status);
int iSetPIE_INT_RAW_STATUS_bd_oq2ipsu_ful_raw_status(unsigned int ubd_oq2ipsu_ful_raw_status);
int iSetPIE_INT_RAW_STATUS_bd_oq2ncsi_ful_raw_status(unsigned int ubd_oq2ncsi_ful_raw_status);
int iSetPIE_INT_RAW_STATUS_bd_oq2up_ful_raw_status(unsigned int ubd_oq2up_ful_raw_status);
int iSetPIE_INT_RAW_STATUS_tx_ucerr_raw_status(unsigned int utx_ucerr_raw_status);
int iSetPIE_INT_RAW_STATUS_rx_ucerr_raw_status(unsigned int urx_ucerr_raw_status);
int iSetPIE_INT_EN_bd_oq2up_cvg_en(unsigned int ubd_oq2up_cvg_en);
int iSetPIE_INT_EN_sgl_cvg_en(unsigned int usgl_cvg_en);
int iSetPIE_INT_EN_bm_fifo_ful_en(unsigned int ubm_fifo_ful_en);
int iSetPIE_INT_EN_oq_eccm_en(unsigned int uoq_eccm_en);
int iSetPIE_INT_EN_oq_eccs_en(unsigned int uoq_eccs_en);
int iSetPIE_INT_EN_tx_parity_en(unsigned int utx_parity_en);
int iSetPIE_INT_EN_rx_parity_en(unsigned int urx_parity_en);
int iSetPIE_INT_EN_bd_oq2ipsu_ful_en(unsigned int ubd_oq2ipsu_ful_en);
int iSetPIE_INT_EN_bd_oq2ncsi_ful_en(unsigned int ubd_oq2ncsi_ful_en);
int iSetPIE_INT_EN_bd_oq2up_ful_en(unsigned int ubd_oq2up_ful_en);
int iSetPIE_INT_EN_tx_ucerr_en(unsigned int utx_ucerr_en);
int iSetPIE_INT_EN_rx_ucerr_en(unsigned int urx_ucerr_en);
int iSetPIE_INT_SET_bd_oq2up_cvg_set(unsigned int ubd_oq2up_cvg_set);
int iSetPIE_INT_SET_sgl_cvg_set(unsigned int usgl_cvg_set);
int iSetPIE_INT_SET_bm_fifo_ful_set(unsigned int ubm_fifo_ful_set);
int iSetPIE_INT_SET_oq_eccm_set(unsigned int uoq_eccm_set);
int iSetPIE_INT_SET_oq_eccs_set(unsigned int uoq_eccs_set);
int iSetPIE_INT_SET_tx_parity_set(unsigned int utx_parity_set);
int iSetPIE_INT_SET_rx_parity_set(unsigned int urx_parity_set);
int iSetPIE_INT_SET_bd_oq2ipsu_ful_set(unsigned int ubd_oq2ipsu_ful_set);
int iSetPIE_INT_SET_bd_oq2ncsi_ful_set(unsigned int ubd_oq2ncsi_ful_set);
int iSetPIE_INT_SET_bd_oq2up_ful_set(unsigned int ubd_oq2up_ful_set);
int iSetPIE_INT_SET_tx_ucerr_set(unsigned int utx_ucerr_set);
int iSetPIE_INT_SET_rx_ucerr_set(unsigned int urx_ucerr_set);
int iSetPIE_INT_STATUS_bd_oq2up_cvg_int_status(unsigned int ubd_oq2up_cvg_int_status);
int iSetPIE_INT_STATUS_sgl_cvg_int_status(unsigned int usgl_cvg_int_status);
int iSetPIE_INT_STATUS_bm_fifo_ful_int_status(unsigned int ubm_fifo_ful_int_status);
int iSetPIE_INT_STATUS_oq_eccm_int_status(unsigned int uoq_eccm_int_status);
int iSetPIE_INT_STATUS_oq_eccs_int_status(unsigned int uoq_eccs_int_status);
int iSetPIE_INT_STATUS_tx_parity_int_status(unsigned int utx_parity_int_status);
int iSetPIE_INT_STATUS_rx_parity_int_status(unsigned int urx_parity_int_status);
int iSetPIE_INT_STATUS_bd_oq2ipsu_ful_int_status(unsigned int ubd_oq2ipsu_ful_int_status);
int iSetPIE_INT_STATUS_bd_oq2ncsi_ful_int_status(unsigned int ubd_oq2ncsi_ful_int_status);
int iSetPIE_INT_STATUS_bd_oq2up_ful_int_status(unsigned int ubd_oq2up_ful_int_status);
int iSetPIE_INT_STATUS_tx_ucerr_int_status(unsigned int utx_ucerr_int_status);
int iSetPIE_INT_STATUS_rx_ucerr_int_status(unsigned int urx_ucerr_int_status);
int iSetCSR_POOL_FUN_fifo0_fun(unsigned int ufifo0_fun);
int iSetCSR_POOL_FUN_fifo1_fun(unsigned int ufifo1_fun);
int iSetCSR_POOL_FUN_fifo2_fun(unsigned int ufifo2_fun);
int iSetCSR_POOL_FUN_fifo3_fun(unsigned int ufifo3_fun);
int iSetCSR_POOL_FUN_fifo4_fun(unsigned int ufifo4_fun);
int iSetCSR_POOL_FUN_fifo5_fun(unsigned int ufifo5_fun);
int iSetCSR_POOL_FUN_fifo6_fun(unsigned int ufifo6_fun);
int iSetCSR_POOL_FUN_fifo7_fun(unsigned int ufifo7_fun);
int iSetCSR_POOL_DEPTH0_fifo4_depth(unsigned int ufifo4_depth);
int iSetCSR_POOL_DEPTH0_fifo5_depth(unsigned int ufifo5_depth);
int iSetCSR_POOL_DEPTH0_fifo6_depth(unsigned int ufifo6_depth);
int iSetCSR_POOL_DEPTH0_fifo7_depth(unsigned int ufifo7_depth);
int iSetCSR_POOL_DEPTH1_fifo0_depth(unsigned int ufifo0_depth);
int iSetCSR_POOL_DEPTH1_fifo1_depth(unsigned int ufifo1_depth);
int iSetCSR_POOL_DEPTH1_fifo2_depth(unsigned int ufifo2_depth);
int iSetCSR_POOL_DEPTH1_fifo3_depth(unsigned int ufifo3_depth);
int iSetCSR_PT_PKT_TYPE_cfg_pt_pkt_type(unsigned int ucfg_pt_pkt_type);
int iSetMAX_FRAME_LEN_max_frame_len(unsigned int umax_frame_len);
int iSetMIN_FRAME_LEN_min_frame_len(unsigned int umin_frame_len);
int iSetCSR_PEIF_FUN_peif_rbd_delay(unsigned int upeif_rbd_delay);
int iSetCSR_PEIF_FUN_csr_peif_unsop_err(unsigned int ucsr_peif_unsop_err);
int iSetCSR_PEIF_FUN_csr_peif_uneop_err(unsigned int ucsr_peif_uneop_err);
int iSetCSR_PEIF_FUN_peif_fifo_gap(unsigned int upeif_fifo_gap);
int iSetCSR_QM_FUN_iq_fifo_gap(unsigned int uiq_fifo_gap);
int iSetDMA_OTD_CNT_dma_otd_cnt(unsigned int udma_otd_cnt);
int iSetCSR_TXBD_ADDR_cfg_txbd_addr(unsigned int ucfg_txbd_addr);
int iSetCSR_BD2UP_TIME_bd_int_th(unsigned int ubd_int_th);
int iSetCSR_BD2UP_TIME_bd_int_timeout(unsigned int ubd_int_timeout);
int iSetCSR_SGL_TIME_sgl_int_th(unsigned int usgl_int_th);
int iSetCSR_SGL_TIME_sgl_int_timeout(unsigned int usgl_int_timeout);
int iSetCSR_MEM_TMOD_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetCSR_MEM_TMOD_tp_ram_tmod(unsigned int utp_ram_tmod);
int iSetCSR_MEM_DFT_POWER_mem_power_mode(unsigned int umem_power_mode);
int iSetCSR_MEM_DFT_POWER_ret1n(unsigned int uret1n);
int iSetCSR_BD_IF0_WRD0_csr_bd_if0_wrd0(unsigned int ucsr_bd_if0_wrd0);
int iSetCSR_BD_IF0_WRD1_csr_bd_if0_wrd1(unsigned int ucsr_bd_if0_wrd1);
int iSetCSR_BD_IF0_WRD2_csr_bd_if0_wrd2(unsigned int ucsr_bd_if0_wrd2);
int iSetCSR_BD_IF0_WRD3_csr_bd_if0_wrd3(unsigned int ucsr_bd_if0_wrd3);
int iSetCSR_BD_IF1_WRD0_csr_bd_if1_wrd0(unsigned int ucsr_bd_if1_wrd0);
int iSetCSR_BD_IF1_WRD1_csr_bd_if1_wrd1(unsigned int ucsr_bd_if1_wrd1);
int iSetCSR_BD_IF1_WRD2_csr_bd_if1_wrd2(unsigned int ucsr_bd_if1_wrd2);
int iSetCSR_BD_IF1_WRD3_csr_bd_if1_wrd3(unsigned int ucsr_bd_if1_wrd3);
int iSetCSR_BD_IF2_WRD0_csr_bd_if2_wrd0(unsigned int ucsr_bd_if2_wrd0);
int iSetCSR_BD_IF2_WRD1_csr_bd_if2_wrd1(unsigned int ucsr_bd_if2_wrd1);
int iSetCSR_BD_IF2_WRD2_csr_bd_if2_wrd2(unsigned int ucsr_bd_if2_wrd2);
int iSetCSR_BD_IF2_WRD3_csr_bd_if2_wrd3(unsigned int ucsr_bd_if2_wrd3);
int iSetCSR_BD_IF3_WRD0_csr_bd_if3_wrd0(unsigned int ucsr_bd_if3_wrd0);
int iSetCSR_BD_IF3_WRD1_csr_bd_if3_wrd1(unsigned int ucsr_bd_if3_wrd1);
int iSetCSR_BD_IF3_WRD2_csr_bd_if3_wrd2(unsigned int ucsr_bd_if3_wrd2);
int iSetCSR_BD_IF3_WRD3_csr_bd_if3_wrd3(unsigned int ucsr_bd_if3_wrd3);
int iSetCSR_BD_IF4_WRD0_csr_bd_if4_wrd0(unsigned int ucsr_bd_if4_wrd0);
int iSetCSR_BD_IF4_WRD1_csr_bd_if4_wrd1(unsigned int ucsr_bd_if4_wrd1);
int iSetCSR_BD_IF4_WRD2_csr_bd_if4_wrd2(unsigned int ucsr_bd_if4_wrd2);
int iSetCSR_BD_IF4_WRD3_csr_bd_if4_wrd3(unsigned int ucsr_bd_if4_wrd3);
int iSetCSR_BD_IF5_WRD0_csr_bd_if5_wrd0(unsigned int ucsr_bd_if5_wrd0);
int iSetCSR_BD_IF5_WRD1_csr_bd_if5_wrd1(unsigned int ucsr_bd_if5_wrd1);
int iSetCSR_BD_IF5_WRD2_csr_bd_if5_wrd2(unsigned int ucsr_bd_if5_wrd2);
int iSetCSR_BD_IF5_WRD3_csr_bd_if5_wrd3(unsigned int ucsr_bd_if5_wrd3);
int iSetCSR_BD_IF6_WRD0_csr_bd_if6_wrd0(unsigned int ucsr_bd_if6_wrd0);
int iSetCSR_BD_IF6_WRD1_csr_bd_if6_wrd1(unsigned int ucsr_bd_if6_wrd1);
int iSetCSR_BD_IF6_WRD2_csr_bd_if6_wrd2(unsigned int ucsr_bd_if6_wrd2);
int iSetCSR_BD_IF6_WRD3_csr_bd_if6_wrd3(unsigned int ucsr_bd_if6_wrd3);
int iSetCSR_BD_IF7_WRD0_csr_bd_if7_wrd0(unsigned int ucsr_bd_if7_wrd0);
int iSetCSR_BD_IF7_WRD1_csr_bd_if7_wrd1(unsigned int ucsr_bd_if7_wrd1);
int iSetCSR_BD_IF7_WRD2_csr_bd_if7_wrd2(unsigned int ucsr_bd_if7_wrd2);
int iSetCSR_BD_IF7_WRD3_csr_bd_if7_wrd3(unsigned int ucsr_bd_if7_wrd3);
int iSetRLS_BD_IF0_WRD0_rls_bd_if0_wrd0(unsigned int urls_bd_if0_wrd0);
int iSetRLS_BD_IF0_WRD1_rls_bd_if0_wrd1(unsigned int urls_bd_if0_wrd1);
int iSetRLS_BD_IF0_WRD2_rls_bd_if0_wrd2(unsigned int urls_bd_if0_wrd2);
int iSetRLS_BD_IF0_WRD3_rls_bd_if0_wrd3(unsigned int urls_bd_if0_wrd3);
int iSetRLS_BD_IF1_WRD0_rls_bd_if1_wrd0(unsigned int urls_bd_if1_wrd0);
int iSetRLS_BD_IF1_WRD1_rls_bd_if1_wrd1(unsigned int urls_bd_if1_wrd1);
int iSetRLS_BD_IF1_WRD2_rls_bd_if1_wrd2(unsigned int urls_bd_if1_wrd2);
int iSetRLS_BD_IF1_WRD3_rls_bd_if1_wrd3(unsigned int urls_bd_if1_wrd3);
int iSetADD_BD_IF0_WRD0_add_bd_if0_wrd0(unsigned int uadd_bd_if0_wrd0);
int iSetADD_BD_IF0_WRD1_add_bd_if0_wrd1(unsigned int uadd_bd_if0_wrd1);
int iSetADD_BD_IF0_WRD2_add_bd_if0_wrd2(unsigned int uadd_bd_if0_wrd2);
int iSetADD_BD_IF0_WRD3_add_bd_if0_wrd3(unsigned int uadd_bd_if0_wrd3);
int iSetADD_BD_IF1_WRD0_add_bd_if1_wrd0(unsigned int uadd_bd_if1_wrd0);
int iSetADD_BD_IF1_WRD1_add_bd_if1_wrd1(unsigned int uadd_bd_if1_wrd1);
int iSetADD_BD_IF1_WRD2_add_bd_if1_wrd2(unsigned int uadd_bd_if1_wrd2);
int iSetADD_BD_IF1_WRD3_add_bd_if1_wrd3(unsigned int uadd_bd_if1_wrd3);
int iSetOQ2UP_BD_IF_WRD0_oq2up_bd_if_wrd0(unsigned int uoq2up_bd_if_wrd0);
int iSetOQ2UP_BD_IF_WRD1_oq2up_bd_if_wrd1(unsigned int uoq2up_bd_if_wrd1);
int iSetOQ2UP_BD_IF_WRD2_oq2up_bd_if_wrd2(unsigned int uoq2up_bd_if_wrd2);
int iSetOQ2UP_BD_IF_WRD3_oq2up_bd_if_wrd3(unsigned int uoq2up_bd_if_wrd3);
int iSetCSR_AXI_MSR_INF_axi_cnt_wr_acc_clr(unsigned int uaxi_cnt_wr_acc_clr);
int iSetCSR_AXI_MSR_INF_axi_cnt_rd_acc_clr(unsigned int uaxi_cnt_rd_acc_clr);
int iSetCSR_AXI_MSR_INF_axi_cnt_wr_latency_clr(unsigned int uaxi_cnt_wr_latency_clr);
int iSetCSR_AXI_MSR_INF_axi_cnt_rd_latency_clr(unsigned int uaxi_cnt_rd_latency_clr);
int iSetBD_ERR_STATUS_csr_reg_err(unsigned int ucsr_reg_err);
int iSetBD_ERR_STATUS_csr_2pe_err(unsigned int ucsr_2pe_err);
int iSetBD_ERR_STATUS_csr_npe_err(unsigned int ucsr_npe_err);
int iSetBD_ERR_STATUS_csr_ovflw_err(unsigned int ucsr_ovflw_err);
int iSetBM_READ0_CNT_bm_read0_cnt(unsigned int ubm_read0_cnt);
int iSetBM_READ1_CNT_bm_read1_cnt(unsigned int ubm_read1_cnt);
int iSetBM_READ2_CNT_bm_read2_cnt(unsigned int ubm_read2_cnt);
int iSetBM_READ3_CNT_bm_read3_cnt(unsigned int ubm_read3_cnt);
int iSetBM_READ4_CNT_bm_read4_cnt(unsigned int ubm_read4_cnt);
int iSetBM_READ5_CNT_bm_read5_cnt(unsigned int ubm_read5_cnt);
int iSetBM_READ6_CNT_bm_read6_cnt(unsigned int ubm_read6_cnt);
int iSetBM_READ7_CNT_bm_read7_cnt(unsigned int ubm_read7_cnt);
int iSetBM_WRITE0_CNT_bm_write0_cnt(unsigned int ubm_write0_cnt);
int iSetBM_WRITE1_CNT_bm_write1_cnt(unsigned int ubm_write1_cnt);
int iSetBM_WRITE2_CNT_bm_write2_cnt(unsigned int ubm_write2_cnt);
int iSetBM_WRITE3_CNT_bm_write3_cnt(unsigned int ubm_write3_cnt);
int iSetBM_WRITE4_CNT_bm_write4_cnt(unsigned int ubm_write4_cnt);
int iSetBM_WRITE5_CNT_bm_write5_cnt(unsigned int ubm_write5_cnt);
int iSetBM_WRITE6_CNT_bm_write6_cnt(unsigned int ubm_write6_cnt);
int iSetBM_WRITE7_CNT_bm_write7_cnt(unsigned int ubm_write7_cnt);
int iSetBM_FIFO0X1_STATUS_bm_fifo0_cnt(unsigned int ubm_fifo0_cnt);
int iSetBM_FIFO0X1_STATUS_bm_fifo0_ful(unsigned int ubm_fifo0_ful);
int iSetBM_FIFO0X1_STATUS_bm_fifo0_ept(unsigned int ubm_fifo0_ept);
int iSetBM_FIFO0X1_STATUS_bm_fifo1_cnt(unsigned int ubm_fifo1_cnt);
int iSetBM_FIFO0X1_STATUS_bm_fifo1_ful(unsigned int ubm_fifo1_ful);
int iSetBM_FIFO0X1_STATUS_bm_fifo1_ept(unsigned int ubm_fifo1_ept);
int iSetBM_FIFO2X3_STATUS_bm_fifo2_cnt(unsigned int ubm_fifo2_cnt);
int iSetBM_FIFO2X3_STATUS_bm_fifo2_ful(unsigned int ubm_fifo2_ful);
int iSetBM_FIFO2X3_STATUS_bm_fifo2_ept(unsigned int ubm_fifo2_ept);
int iSetBM_FIFO2X3_STATUS_bm_fifo3_cnt(unsigned int ubm_fifo3_cnt);
int iSetBM_FIFO2X3_STATUS_bm_fifo3_ful(unsigned int ubm_fifo3_ful);
int iSetBM_FIFO2X3_STATUS_bm_fifo3_ept(unsigned int ubm_fifo3_ept);
int iSetBM_FIFO4X5_STATUS_bm_fifo4_cnt(unsigned int ubm_fifo4_cnt);
int iSetBM_FIFO4X5_STATUS_bm_fifo4_ful(unsigned int ubm_fifo4_ful);
int iSetBM_FIFO4X5_STATUS_bm_fifo4_ept(unsigned int ubm_fifo4_ept);
int iSetBM_FIFO4X5_STATUS_bm_fifo5_cnt(unsigned int ubm_fifo5_cnt);
int iSetBM_FIFO4X5_STATUS_bm_fifo5_ful(unsigned int ubm_fifo5_ful);
int iSetBM_FIFO4X5_STATUS_bm_fifo5_ept(unsigned int ubm_fifo5_ept);
int iSetBM_FIFO6X7_STATUS_bm_fifo6_cnt(unsigned int ubm_fifo6_cnt);
int iSetBM_FIFO6X7_STATUS_bm_fifo6_ful(unsigned int ubm_fifo6_ful);
int iSetBM_FIFO6X7_STATUS_bm_fifo6_ept(unsigned int ubm_fifo6_ept);
int iSetBM_FIFO6X7_STATUS_bm_fifo7_cnt(unsigned int ubm_fifo7_cnt);
int iSetBM_FIFO6X7_STATUS_bm_fifo7_ful(unsigned int ubm_fifo7_ful);
int iSetBM_FIFO6X7_STATUS_bm_fifo7_ept(unsigned int ubm_fifo7_ept);
int iSetBM_READ0_EMP_CNT_bm_read0_emp_cnt(unsigned int ubm_read0_emp_cnt);
int iSetBM_READ1_EMP_CNT_bm_read1_emp_cnt(unsigned int ubm_read1_emp_cnt);
int iSetBM_READ2_EMP_CNT_bm_read2_emp_cnt(unsigned int ubm_read2_emp_cnt);
int iSetBM_READ3_EMP_CNT_bm_read3_emp_cnt(unsigned int ubm_read3_emp_cnt);
int iSetBM_READ4_EMP_CNT_bm_read4_emp_cnt(unsigned int ubm_read4_emp_cnt);
int iSetBM_READ5_EMP_CNT_bm_read5_emp_cnt(unsigned int ubm_read5_emp_cnt);
int iSetBM_READ6_EMP_CNT_bm_read6_emp_cnt(unsigned int ubm_read6_emp_cnt);
int iSetBM_READ7_EMP_CNT_bm_read7_emp_cnt(unsigned int ubm_read7_emp_cnt);
int iSetRX_PKT_STATUS_rx_size_up_cnt(unsigned int urx_size_up_cnt);
int iSetNCSI_BPR_CNT_ncsi_bpr_cnt(unsigned int uncsi_bpr_cnt);
int iSetIQ_BD_STATUS_iq_bd_cnt(unsigned int uiq_bd_cnt);
int iSetIQ_BD_STATUS_iq_bd_ful(unsigned int uiq_bd_ful);
int iSetIQ_BD_STATUS_iq_bd_ept(unsigned int uiq_bd_ept);
int iSetOQ_BD2UP_STATUS_oq_bd2up_cnt(unsigned int uoq_bd2up_cnt);
int iSetOQ_BD2UP_STATUS_oq_bd2up_ful(unsigned int uoq_bd2up_ful);
int iSetOQ_BD2UP_STATUS_oq_bd2up_ept(unsigned int uoq_bd2up_ept);
int iSetOQ_BD2NCSI_STATUS_oq_bd2ncsi_cnt(unsigned int uoq_bd2ncsi_cnt);
int iSetOQ_BD2NCSI_STATUS_oq_bd2ncsi_ful(unsigned int uoq_bd2ncsi_ful);
int iSetOQ_BD2NCSI_STATUS_oq_bd2ncsi_ept(unsigned int uoq_bd2ncsi_ept);
int iSetOQ_BD2IPSU_STATUS_oq_bd2ipsu_cnt(unsigned int uoq_bd2ipsu_cnt);
int iSetOQ_BD2IPSU_STATUS_oq_bd2ipsu_ful(unsigned int uoq_bd2ipsu_ful);
int iSetOQ_BD2IPSU_STATUS_oq_bd2ipsu_ept(unsigned int uoq_bd2ipsu_ept);
int iSetOUT2UP_BD_CNT_out2up_bd_cnt(unsigned int uout2up_bd_cnt);
int iSetOUT2IPSU_BD_CNT_out2ipsu_bd_cnt(unsigned int uout2ipsu_bd_cnt);
int iSetOUT2NCSI_BD_CNT_out2ncsi_bd_cnt(unsigned int uout2ncsi_bd_cnt);
int iSetOQ_ECCS_CNT_oq_eccs_cnt(unsigned int uoq_eccs_cnt);
int iSetOQ_ECCM_CNT_oq_eccm_cnt(unsigned int uoq_eccm_cnt);
int iSetAXI_RD_LATENCY_AVG_CNT_axi_rd_latency_avg_cnt(unsigned int uaxi_rd_latency_avg_cnt);
int iSetAXI_WR_LATENCY_AVG_CNT_axi_wr_latency_avg_cnt(unsigned int uaxi_wr_latency_avg_cnt);
int iSetAXI_RD_LATENCY_MAX_CNT_axi_rd_latency_max_cnt(unsigned int uaxi_rd_latency_max_cnt);
int iSetAXI_WR_LATENCY_MAX_CNT_axi_wr_latency_max_cnt(unsigned int uaxi_wr_latency_max_cnt);
int iSetAXI_RD_ACC_CNT_axi_rd_acc_cnt(unsigned int uaxi_rd_acc_cnt);
int iSetAXI_WR_ACC_CNT_axi_wr_acc_cnt(unsigned int uaxi_wr_acc_cnt);
int iSetAXI_RD_OTD_CNT_axiwr_bresp_err(unsigned int uaxiwr_bresp_err);
int iSetAXI_RD_OTD_CNT_axird_bresp_err(unsigned int uaxird_bresp_err);
int iSetAXI_RD_OTD_CNT_axi_rd_otd_cnt(unsigned int uaxi_rd_otd_cnt);
int iSetAXI_WR_OTD_CNT_axi_wr_otd_cnt(unsigned int uaxi_wr_otd_cnt);
int iSetTXDMA_DAT_FF_TH_dat_fifo_alempt_gap(unsigned int udat_fifo_alempt_gap);
int iSetTXDMA_DAT_FF_TH_dat_fifo_aful_gap(unsigned int udat_fifo_aful_gap);
int iSetTXDMA_DAT_FF_STA_dat_fifo_alempt_ff(unsigned int udat_fifo_alempt_ff);
int iSetTXDMA_DAT_FF_STA_dat_fifo_empt_ff(unsigned int udat_fifo_empt_ff);
int iSetTXDMA_DAT_FF_STA_dat_fifo_aful_ff(unsigned int udat_fifo_aful_ff);
int iSetTXDMA_DAT_FF_STA_dat_fifo_ful_ff(unsigned int udat_fifo_ful_ff);
int iSetTXDMA_DAT_FF_STA_dat_fifo_underflow_ff(unsigned int udat_fifo_underflow_ff);
int iSetTXDMA_DAT_FF_STA_dat_fifo_overflow_ff(unsigned int udat_fifo_overflow_ff);
int iSetTXDMA_DAT_FF_STA_dat_fifo_cnt_ff(unsigned int udat_fifo_cnt_ff);
int iSetTXDMA_INF_FF_TH_inf_fifo_alempt_gap(unsigned int uinf_fifo_alempt_gap);
int iSetTXDMA_INF_FF_TH_inf_fifo_aful_gap(unsigned int uinf_fifo_aful_gap);
int iSetTXDMA_INF_FF_STA_inf_fifo_alempt_ff(unsigned int uinf_fifo_alempt_ff);
int iSetTXDMA_INF_FF_STA_inf_fifo_empt_ff(unsigned int uinf_fifo_empt_ff);
int iSetTXDMA_INF_FF_STA_inf_fifo_aful_ff(unsigned int uinf_fifo_aful_ff);
int iSetTXDMA_INF_FF_STA_inf_fifo_ful_ff(unsigned int uinf_fifo_ful_ff);
int iSetTXDMA_INF_FF_STA_inf_fifo_underflow_ff(unsigned int uinf_fifo_underflow_ff);
int iSetTXDMA_INF_FF_STA_inf_fifo_overflow_ff(unsigned int uinf_fifo_overflow_ff);
int iSetTXDMA_INF_FF_STA_inf_fifo_cnt_ff(unsigned int uinf_fifo_cnt_ff);
int iSetIPSUIF_FF_TH_ipsuif_fifo_alempt_th(unsigned int uipsuif_fifo_alempt_th);
int iSetIPSUIF_FF_TH_ipsuif_fifo_afull_th(unsigned int uipsuif_fifo_afull_th);
int iSetIPSUIF_FF_STA_ipsuif_fifo_alempt(unsigned int uipsuif_fifo_alempt);
int iSetIPSUIF_FF_STA_ipsuif_fifo_empt(unsigned int uipsuif_fifo_empt);
int iSetIPSUIF_FF_STA_ipsuif_fifo_aful(unsigned int uipsuif_fifo_aful);
int iSetIPSUIF_FF_STA_ipsuif_fifo_full(unsigned int uipsuif_fifo_full);
int iSetIPSUIF_FF_STA_ipsuif_fifo_overflow(unsigned int uipsuif_fifo_overflow);
int iSetIPSUIF_FF_STA_ipsuif_fifo_wfifo_cnt(unsigned int uipsuif_fifo_wfifo_cnt);
int iSetBM_READ0_FUL_CNT_bm_read0_ful_cnt(unsigned int ubm_read0_ful_cnt);
int iSetBM_READ1_FUL_CNT_bm_read1_ful_cnt(unsigned int ubm_read1_ful_cnt);
int iSetBM_READ2_FUL_CNT_bm_read2_ful_cnt(unsigned int ubm_read2_ful_cnt);
int iSetBM_READ3_FUL_CNT_bm_read3_ful_cnt(unsigned int ubm_read3_ful_cnt);
int iSetBM_READ4_FUL_CNT_bm_read4_ful_cnt(unsigned int ubm_read4_ful_cnt);
int iSetBM_READ5_FUL_CNT_bm_read5_ful_cnt(unsigned int ubm_read5_ful_cnt);
int iSetBM_READ6_FUL_CNT_bm_read6_ful_cnt(unsigned int ubm_read6_ful_cnt);
int iSetBM_READ7_FUL_CNT_bm_read7_ful_cnt(unsigned int ubm_read7_ful_cnt);
int iSetRX_PARITY_ERR_CNT_rxdma_parity_err_cnt(unsigned int urxdma_parity_err_cnt);
int iSetTX_PARITY_ERR_CNT_txdma_parity_err_cnt(unsigned int utxdma_parity_err_cnt);
int iSetTX_MINLEN_ERR_CNT_txdma_minlen_err_cnt(unsigned int utxdma_minlen_err_cnt);
int iSetTX_BDSIZE_ERR_CNT_txdma_bdsize_err_cnt(unsigned int utxdma_bdsize_err_cnt);
int iSetTX_BDCODE_ERR_CNT_txdma_bdcode_err_cnt(unsigned int utxdma_bdcode_err_cnt);
int iSetTX_SGL_CI_TH_tx_sgl_ci_th(unsigned int utx_sgl_ci_th);
int iSetTX_SGL_CI_CNT_tx_sgl_ci_cnt(unsigned int utx_sgl_ci_cnt);
int iSetQM_ECC_ERR_ADDR_qm_ecc_err_addr(unsigned int uqm_ecc_err_addr);
int iSetPIE_ECC_BYPASS_qm_ecc_bypass(unsigned int uqm_ecc_bypass);
int iSetPEIF_FIFO_STA_peif_fifo_aful(unsigned int upeif_fifo_aful);
int iSetPEIF_FIFO_STA_peif_fifo_full(unsigned int upeif_fifo_full);
int iSetPEIF_FIFO_STA_peif_fifo_oflow(unsigned int upeif_fifo_oflow);
int iSetQM_RAM_ECC_INSR_qm_ram_cerr_insr(unsigned int uqm_ram_cerr_insr);
int iSetQM_RAM_ECC_INSR_qm_ram_ucerr_insr(unsigned int uqm_ram_ucerr_insr);
int iSetPIE_INITIAL_END_peif_prefetch_start(unsigned int upeif_prefetch_start);
int iSetTX_RX_RAM_ECC_INSR_tx_ram_cerr_insr(unsigned int utx_ram_cerr_insr);
int iSetTX_RX_RAM_ECC_INSR_tx_ram_ucerr_insr(unsigned int utx_ram_ucerr_insr);
int iSetTX_RX_RAM_ECC_INSR_rx_ram_cerr_insr(unsigned int urx_ram_cerr_insr);
int iSetTX_RX_RAM_ECC_INSR_rx_ram_ucerr_insr(unsigned int urx_ram_ucerr_insr);
int iSetRX_CERR_CNT_rx_cerr_cnt(unsigned int urx_cerr_cnt);
int iSetRX_UCERR_CNT_rx_ucerr_cnt(unsigned int urx_ucerr_cnt);
int iSetTX_CERR_CNT_tx_cerr_cnt(unsigned int utx_cerr_cnt);
int iSetTX_UCERR_CNT_tx_ucerr_cnt(unsigned int utx_ucerr_cnt);
int iSetRX_ECC_ERR_ADDR_rxdma_ecc_err_addr(unsigned int urxdma_ecc_err_addr);
int iSetTX_ECC_ERR_ADDR_txdma_ecc_err_addr(unsigned int utxdma_ecc_err_addr);

/* Define the union csr_sc_chain_err_int_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 chain_err_int_status : 1; /* [0] */
        u32 rsv_0 : 31;               /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_chain_err_int_status_u;

/* Define the union csr_sc_chain_err_int_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 chain_err_int_en : 1; /* [0] */
        u32 rsv_1 : 31;           /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_chain_err_int_en_u;

/* Define the union csr_sc_chain_err_int_set_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 chain_err_int_set : 1; /* [0] */
        u32 rsv_2 : 31;            /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_chain_err_int_set_u;

/* Define the union csr_sc_chain_err_int_raw_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 chain_err_raw_status : 1; /* [0] */
        u32 rsv_3 : 31;               /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_chain_err_int_raw_status_u;

/* Define the union csr_sc_saw_errrsp_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 errrsp_disable : 1; /* [0] */
        u32 rsv_4 : 31;         /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_saw_errrsp_u;

/* Define the union csr_sc_cfg_smmu_bdf_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cfg_smmu_bdf : 16; /* [15:0] */
        u32 rsv_5 : 16;        /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_cfg_smmu_bdf_u;

/* Define the union csr_sc_cfg_mbix_didba_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cfg_mbix_didba : 16; /* [15:0] */
        u32 rsv_6 : 16;          /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_cfg_mbix_didba_u;

/* Define the union csr_sc_smmu_event_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 smmu_event : 1; /* [0] */
        u32 rsv_7 : 31;     /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_smmu_event_u;

/* Define the union csr_sc_mpu_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mpu_icl_ns_ctrl : 1; /* [0] */
        u32 rsv_8 : 31;          /* [31:1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_mpu_ctrl_u;

/* Define the union csr_sc_cfg_bus_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rd_wait_cycle : 10; /* [9:0] */
        u32 rsv_9 : 22;         /* [31:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_cfg_bus_ctrl_u;

/* Define the union csr_sc_cmd_dely_define_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cmd_dely_define : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_cmd_dely_define_u;

/* Define the union csr_sc_reg_res_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_reg_res_0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_reg_res_0_u;

/* Define the union csr_sc_reg_res_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_reg_res_1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_reg_res_1_u;

/* Define the union csr_sc_reg_res_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_reg_res_2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_reg_res_2_u;

/* Define the union csr_sc_reg_res_3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 sc_reg_res_3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_sc_reg_res_3_u;

/* Define the union csr_nc_reg_res_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 nc_reg_res_0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_nc_reg_res_0_u;

/* Define the union csr_nc_reg_res_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 nc_reg_res_1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_nc_reg_res_1_u;

/* Define the union csr_nc_reg_res_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 nc_reg_res_2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_nc_reg_res_2_u;

/* Define the union csr_nc_reg_res_3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 nc_reg_res_3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_nc_reg_res_3_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_sc_chain_err_int_status_u sc_chain_err_int_status;         /* 0 */
    volatile csr_sc_chain_err_int_en_u sc_chain_err_int_en;                 /* 4 */
    volatile csr_sc_chain_err_int_set_u sc_chain_err_int_set;               /* 8 */
    volatile csr_sc_chain_err_int_raw_status_u sc_chain_err_int_raw_status; /* C */
    volatile csr_sc_saw_errrsp_u sc_saw_errrsp;                             /* 10 */
    volatile csr_sc_cfg_smmu_bdf_u sc_cfg_smmu_bdf;                         /* 14 */
    volatile csr_sc_cfg_mbix_didba_u sc_cfg_mbix_didba;                     /* 18 */
    volatile csr_sc_smmu_event_u sc_smmu_event;                             /* 1C */
    volatile csr_sc_mpu_ctrl_u sc_mpu_ctrl;                                 /* 20 */
    volatile csr_sc_cfg_bus_ctrl_u sc_cfg_bus_ctrl;                         /* 24 */
    volatile csr_sc_cmd_dely_define_u sc_cmd_dely_define;                   /* 28 */
    volatile csr_sc_reg_res_0_u sc_reg_res_0;                               /* 2C */
    volatile csr_sc_reg_res_1_u sc_reg_res_1;                               /* 30 */
    volatile csr_sc_reg_res_2_u sc_reg_res_2;                               /* 34 */
    volatile csr_sc_reg_res_3_u sc_reg_res_3;                               /* 38 */
    volatile csr_nc_reg_res_0_u nc_reg_res_0;                               /* 3C */
    volatile csr_nc_reg_res_1_u nc_reg_res_1;                               /* 40 */
    volatile csr_nc_reg_res_2_u nc_reg_res_2;                               /* 44 */
    volatile csr_nc_reg_res_3_u nc_reg_res_3;                               /* 48 */
} S_mpu_icl_subctrl_REGS_TYPE;

/* Declare the struct pointor of the module mpu_icl_subctrl */
extern volatile S_mpu_icl_subctrl_REGS_TYPE *gopmpu_icl_subctrlAllReg;

/* Declare the functions that set the member value */
int iSetSC_CHAIN_ERR_INT_STATUS_chain_err_int_status(unsigned int uchain_err_int_status);
int iSetSC_CHAIN_ERR_INT_EN_chain_err_int_en(unsigned int uchain_err_int_en);
int iSetSC_CHAIN_ERR_INT_SET_chain_err_int_set(unsigned int uchain_err_int_set);
int iSetSC_CHAIN_ERR_INT_RAW_STATUS_chain_err_raw_status(unsigned int uchain_err_raw_status);
int iSetSC_SAW_ERRRSP_errrsp_disable(unsigned int uerrrsp_disable);
int iSetSC_CFG_SMMU_BDF_cfg_smmu_bdf(unsigned int ucfg_smmu_bdf);
int iSetSC_CFG_MBIX_DIDBA_cfg_mbix_didba(unsigned int ucfg_mbix_didba);
int iSetSC_SMMU_EVENT_smmu_event(unsigned int usmmu_event);
int iSetSC_MPU_CTRL_mpu_icl_ns_ctrl(unsigned int umpu_icl_ns_ctrl);
int iSetSC_CFG_BUS_CTRL_rd_wait_cycle(unsigned int urd_wait_cycle);
int iSetSC_CMD_DELY_DEFINE_cmd_dely_define(unsigned int ucmd_dely_define);
int iSetSC_REG_RES_0_sc_reg_res_0(unsigned int usc_reg_res_0);
int iSetSC_REG_RES_1_sc_reg_res_1(unsigned int usc_reg_res_1);
int iSetSC_REG_RES_2_sc_reg_res_2(unsigned int usc_reg_res_2);
int iSetSC_REG_RES_3_sc_reg_res_3(unsigned int usc_reg_res_3);
int iSetNC_REG_RES_0_nc_reg_res_0(unsigned int unc_reg_res_0);
int iSetNC_REG_RES_1_nc_reg_res_1(unsigned int unc_reg_res_1);
int iSetNC_REG_RES_2_nc_reg_res_2(unsigned int unc_reg_res_2);
int iSetNC_REG_RES_3_nc_reg_res_3(unsigned int unc_reg_res_3);

/* Define the union csr_apb2ff_fic_indir_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fic_indir_addr : 22;   /* [21:0] */
        u32 fic_indir_len : 5;     /* [26:22] */
        u32 fic_indir_cnt_car : 1; /* [27] */
        u32 fic_indir_stat : 2;    /* [29:28] */
        u32 fic_indir_mode : 1;    /* [30] */
        u32 fic_indir_vld : 1;     /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_fic_indir_ctrl_u;

/* Define the union csr_apb2ff_fic_indir_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fic_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_fic_indir_timeout_u;

/* Define the union csr_apb2ff_fic_indir_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 fic_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_fic_indir_data_u;

/* Define the union csr_apb2ff_fic_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 apb2ff_fic_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_fic_version_u;

/* Define the union csr_apb2ff_mag_indir_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mag_indir_addr : 22;   /* [21:0] */
        u32 mag_indir_len : 5;     /* [26:22] */
        u32 mag_indir_cnt_car : 1; /* [27] */
        u32 mag_indir_stat : 2;    /* [29:28] */
        u32 mag_indir_mode : 1;    /* [30] */
        u32 mag_indir_vld : 1;     /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_mag_indir_ctrl_u;

/* Define the union csr_apb2ff_mag_indir_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mag_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_mag_indir_timeout_u;

/* Define the union csr_apb2ff_mag_indir_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 mag_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_mag_indir_data_u;

/* Define the union csr_apb2ff_mag_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 apb2ff_mag_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_mag_version_u;

/* Define the union csr_apb2ff_ngpcs_indir_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ngpcs_indir_addr : 22;   /* [21:0] */
        u32 ngpcs_indir_len : 5;     /* [26:22] */
        u32 ngpcs_indir_cnt_car : 1; /* [27] */
        u32 ngpcs_indir_stat : 2;    /* [29:28] */
        u32 ngpcs_indir_mode : 1;    /* [30] */
        u32 ngpcs_indir_vld : 1;     /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_ngpcs_indir_ctrl_u;

/* Define the union csr_apb2ff_ngpcs_indir_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ngpcs_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_ngpcs_indir_timeout_u;

/* Define the union csr_apb2ff_ngpcs_indir_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ngpcs_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_ngpcs_indir_data_u;

/* Define the union csr_apb2ff_ngpcs_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 apb2ff_ngpcs_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_ngpcs_version_u;

/* Define the union csr_apb2ff_antring_indir_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 antring_indir_addr : 22;   /* [21:0] */
        u32 antring_indir_len : 5;     /* [26:22] */
        u32 antring_indir_cnt_car : 1; /* [27] */
        u32 antring_indir_stat : 2;    /* [29:28] */
        u32 antring_indir_mode : 1;    /* [30] */
        u32 antring_indir_vld : 1;     /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_antring_indir_ctrl_u;

/* Define the union csr_apb2ff_antring_indir_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 antring_indir_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_antring_indir_timeout_u;

/* Define the union csr_apb2ff_antring_indir_data_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 antring_indir_data : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_antring_indir_data_u;

/* Define the union csr_apb2ff_antring_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 apb2ff_antring_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_apb2ff_antring_version_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_apb2ff_fic_indir_ctrl_u apb2ff_fic_indir_ctrl;               /* 100 */
    volatile csr_apb2ff_fic_indir_timeout_u apb2ff_fic_indir_timeout;         /* 104 */
    volatile csr_apb2ff_fic_indir_data_u apb2ff_fic_indir_data[32];           /* 108 */
    volatile csr_apb2ff_fic_version_u apb2ff_fic_version;                     /* 188 */
    volatile csr_apb2ff_mag_indir_ctrl_u apb2ff_mag_indir_ctrl;               /* 400 */
    volatile csr_apb2ff_mag_indir_timeout_u apb2ff_mag_indir_timeout;         /* 404 */
    volatile csr_apb2ff_mag_indir_data_u apb2ff_mag_indir_data[32];           /* 408 */
    volatile csr_apb2ff_mag_version_u apb2ff_mag_version;                     /* 488 */
    volatile csr_apb2ff_ngpcs_indir_ctrl_u apb2ff_ngpcs_indir_ctrl;           /* 700 */
    volatile csr_apb2ff_ngpcs_indir_timeout_u apb2ff_ngpcs_indir_timeout;     /* 704 */
    volatile csr_apb2ff_ngpcs_indir_data_u apb2ff_ngpcs_indir_data[32];       /* 708 */
    volatile csr_apb2ff_ngpcs_version_u apb2ff_ngpcs_version;                 /* 788 */
    volatile csr_apb2ff_antring_indir_ctrl_u apb2ff_antring_indir_ctrl;       /* A00 */
    volatile csr_apb2ff_antring_indir_timeout_u apb2ff_antring_indir_timeout; /* A04 */
    volatile csr_apb2ff_antring_indir_data_u apb2ff_antring_indir_data;       /* A08 */
    volatile csr_apb2ff_antring_version_u apb2ff_antring_version;             /* A0C */
} S_apb2ff_csr_REGS_TYPE;

/* Declare the struct pointor of the module apb2ff_csr */
extern volatile S_apb2ff_csr_REGS_TYPE *gopapb2ff_csrAllReg;

/* Declare the functions that set the member value */
int iSetAPB2FF_FIC_INDIR_CTRL_fic_indir_addr(unsigned int ufic_indir_addr);
int iSetAPB2FF_FIC_INDIR_CTRL_fic_indir_len(unsigned int ufic_indir_len);
int iSetAPB2FF_FIC_INDIR_CTRL_fic_indir_cnt_car(unsigned int ufic_indir_cnt_car);
int iSetAPB2FF_FIC_INDIR_CTRL_fic_indir_stat(unsigned int ufic_indir_stat);
int iSetAPB2FF_FIC_INDIR_CTRL_fic_indir_mode(unsigned int ufic_indir_mode);
int iSetAPB2FF_FIC_INDIR_CTRL_fic_indir_vld(unsigned int ufic_indir_vld);
int iSetAPB2FF_FIC_INDIR_TIMEOUT_fic_indir_timeout(unsigned int ufic_indir_timeout);
int iSetAPB2FF_FIC_INDIR_DATA_fic_indir_data(unsigned int ufic_indir_data);
int iSetAPB2FF_FIC_VERSION_apb2ff_fic_version(unsigned int uapb2ff_fic_version);
int iSetAPB2FF_MAG_INDIR_CTRL_mag_indir_addr(unsigned int umag_indir_addr);
int iSetAPB2FF_MAG_INDIR_CTRL_mag_indir_len(unsigned int umag_indir_len);
int iSetAPB2FF_MAG_INDIR_CTRL_mag_indir_cnt_car(unsigned int umag_indir_cnt_car);
int iSetAPB2FF_MAG_INDIR_CTRL_mag_indir_stat(unsigned int umag_indir_stat);
int iSetAPB2FF_MAG_INDIR_CTRL_mag_indir_mode(unsigned int umag_indir_mode);
int iSetAPB2FF_MAG_INDIR_CTRL_mag_indir_vld(unsigned int umag_indir_vld);
int iSetAPB2FF_MAG_INDIR_TIMEOUT_mag_indir_timeout(unsigned int umag_indir_timeout);
int iSetAPB2FF_MAG_INDIR_DATA_mag_indir_data(unsigned int umag_indir_data);
int iSetAPB2FF_MAG_VERSION_apb2ff_mag_version(unsigned int uapb2ff_mag_version);
int iSetAPB2FF_NGPCS_INDIR_CTRL_ngpcs_indir_addr(unsigned int ungpcs_indir_addr);
int iSetAPB2FF_NGPCS_INDIR_CTRL_ngpcs_indir_len(unsigned int ungpcs_indir_len);
int iSetAPB2FF_NGPCS_INDIR_CTRL_ngpcs_indir_cnt_car(unsigned int ungpcs_indir_cnt_car);
int iSetAPB2FF_NGPCS_INDIR_CTRL_ngpcs_indir_stat(unsigned int ungpcs_indir_stat);
int iSetAPB2FF_NGPCS_INDIR_CTRL_ngpcs_indir_mode(unsigned int ungpcs_indir_mode);
int iSetAPB2FF_NGPCS_INDIR_CTRL_ngpcs_indir_vld(unsigned int ungpcs_indir_vld);
int iSetAPB2FF_NGPCS_INDIR_TIMEOUT_ngpcs_indir_timeout(unsigned int ungpcs_indir_timeout);
int iSetAPB2FF_NGPCS_INDIR_DATA_ngpcs_indir_data(unsigned int ungpcs_indir_data);
int iSetAPB2FF_NGPCS_VERSION_apb2ff_ngpcs_version(unsigned int uapb2ff_ngpcs_version);
int iSetAPB2FF_ANTRING_INDIR_CTRL_antring_indir_addr(unsigned int uantring_indir_addr);
int iSetAPB2FF_ANTRING_INDIR_CTRL_antring_indir_len(unsigned int uantring_indir_len);
int iSetAPB2FF_ANTRING_INDIR_CTRL_antring_indir_cnt_car(unsigned int uantring_indir_cnt_car);
int iSetAPB2FF_ANTRING_INDIR_CTRL_antring_indir_stat(unsigned int uantring_indir_stat);
int iSetAPB2FF_ANTRING_INDIR_CTRL_antring_indir_mode(unsigned int uantring_indir_mode);
int iSetAPB2FF_ANTRING_INDIR_CTRL_antring_indir_vld(unsigned int uantring_indir_vld);
int iSetAPB2FF_ANTRING_INDIR_TIMEOUT_antring_indir_timeout(unsigned int uantring_indir_timeout);
int iSetAPB2FF_ANTRING_INDIR_DATA_antring_indir_data(unsigned int uantring_indir_data);
int iSetAPB2FF_ANTRING_VERSION_apb2ff_antring_version(unsigned int uapb2ff_antring_version);


#endif // MPU_C_UNION_DEFINE_H
